feat: firebird FKs, PKs, procedures, funcs

This commit is contained in:
Nybkox
2025-05-13 19:40:51 +02:00
parent 85f7011e03
commit 3e0f834796
11 changed files with 245 additions and 55 deletions

View File

@@ -0,0 +1,16 @@
module.exports = `
SELECT
TRIM(F.RDB$FUNCTION_NAME) AS "pureName",
TRIM(F.RDB$OWNER_NAME) AS "schemaName",
TRIM(F.RDB$FUNCTION_NAME) AS "objectId",
TRIM('FUNCTION') AS "objectTypeField",
TRIM(F.RDB$DESCRIPTION) AS "objectComment",
F.RDB$FUNCTION_SOURCE AS "createSql", -- This is the PSQL body or definition for UDRs
FALSE AS "requiresFormat" -- Assuming PSQL source is generally readable
FROM
RDB$FUNCTIONS F
WHERE
COALESCE(F.RDB$SYSTEM_FLAG, 0) = 0 -- User-defined functions
ORDER BY
"schemaName", "pureName";
`;