mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 07:16:01 +00:00
feat: firebird FKs, PKs, procedures, funcs
This commit is contained in:
16
plugins/dbgate-plugin-firebird/src/backend/sql/functions.js
Normal file
16
plugins/dbgate-plugin-firebird/src/backend/sql/functions.js
Normal 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";
|
||||
`;
|
||||
Reference in New Issue
Block a user