This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Drop the schema if it currently exists | |
DROP SCHEMA IF EXISTS "platform-tmp" CASCADE; | |
-- Create the new schema | |
CREATE SCHEMA "platform-tmp"; | |
-- Copy all objects from platform schema to platform-tmp schema | |
CREATE OR REPLACE FUNCTION clone_schema(source_schema text, dest_schema text) RETURNS void AS | |
$$ | |
DECLARE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# dependencies: jq, gh | |
if [ -z "$1" ]; then | |
echo "Usage: list-prs-for-path PATH [branch]"; | |
echo "Lists all PRs touching files starting with PATH"; | |
exit 1; | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type RecursiveReadonly<T extends object> = Readonly<{ | |
readonly [key in keyof T]: | |
T[key] extends object | |
? T[key] extends BigInt | Date | Number | Symbol ? T[key] : RecursiveReadonly<T[key]> | |
: T[key] | |
}> |