feat: add object ids to firebird queries

This commit is contained in:
Pavel
2025-05-27 18:49:27 +02:00
parent c20cac621a
commit 1568dfc183
8 changed files with 48 additions and 19 deletions

View File

@@ -1,9 +1,12 @@
module.exports = `
SELECT
module.exports = `SELECT
TRIM(RDB$RELATION_NAME) AS "pureName",
RDB$DESCRIPTION AS "objectComment",
RDB$FORMAT AS "objectTypeField"
FROM RDB$RELATIONS
WHERE RDB$SYSTEM_FLAG = 0 -- only user-defined tables
ORDER BY "pureName";
`;
FROM
RDB$RELATIONS
WHERE
RDB$SYSTEM_FLAG = 0 -- only user-defined tables
AND
('tables:' || TRIM(RDB$RELATION_NAME)) =OBJECT_ID_CONDITION
ORDER BY
"pureName";`;