Skip to content

Instantly share code, notes, and snippets.

View jziggas's full-sized avatar

Joshua Ziggas jziggas

  • Meeplechase
  • Florida
  • 22:30 (UTC -05:00)
View GitHub Profile
@jziggas
jziggas / openapi.yaml
Created May 2, 2023 18:48
Marvel OpenAPI 3.x Documentation
openapi: 3.0.1
info:
title: gateway.marvel.com
version: Cable
servers:
- url: http://gateway.marvel.com/
tags:
- name: public
paths:
/v1/public/characters:
@jziggas
jziggas / drop_policies.sql
Created October 3, 2023 14:44
Drop all policies on a given table in PostgreSQL
CREATE OR REPLACE FUNCTION drop_all_policies_on_table(
target_schema text,
target_table_name text
) RETURNS void LANGUAGE plpgsql AS $$
DECLARE
policy_name text;
sql_text text;
BEGIN
FOR policy_name IN (
SELECT policyname