feat: add views to firebird

This commit is contained in:
Pavel
2025-05-27 19:05:02 +02:00
parent 1568dfc183
commit 2f7b3455e5
4 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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
AND
RDB$RELATION_TYPE = 1 -- only views (not tables, etc.)
AND
('tables:' || TRIM(RDB$RELATION_NAME)) =OBJECT_ID_CONDITION
ORDER BY
"pureName";`;