mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46:00 +00:00
feat: add views to firebird
This commit is contained in:
14
plugins/dbgate-plugin-firebird/src/backend/sql/views.js
Normal file
14
plugins/dbgate-plugin-firebird/src/backend/sql/views.js
Normal 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";`;
|
||||
Reference in New Issue
Block a user