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
function exportVar(varToExport, filename) { | |
if (varToExport === undefined) { throw new Error('undefined var'); } | |
if (!filename) { | |
filename = 'exportedVar.json'; | |
} | |
const fileBlob = new File([JSON.stringify(varToExport)], filename); | |
const dowloader = document.createElement('a'); | |
dowloader.setAttribute('download', filename); | |
const url = URL.createObjectURL(fileBlob); |
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
-- Fetch enum values | |
SELECT e.enumlabel | |
FROM pg_type t | |
INNER JOIN pg_enum e ON t.oid = e.enumtypid | |
WHERE t.typname = :enumtypname | |
ORDER BY e.enumsortorder; | |
-- export enums |
NewerOlder