mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 11:26:00 +00:00
added plugins
This commit is contained in:
11
plugins/dbgate-plugin-postgres/src/backend/sql/views.js
Normal file
11
plugins/dbgate-plugin-postgres/src/backend/sql/views.js
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = `
|
||||
select
|
||||
table_name as "pureName",
|
||||
table_schema as "schemaName",
|
||||
view_definition as "createSql",
|
||||
md5(view_definition) as "hashCode"
|
||||
from
|
||||
information_schema.views
|
||||
where table_schema != 'information_schema' and table_schema != 'pg_catalog'
|
||||
and ('views:' || table_schema || '.' || table_name) =OBJECT_ID_CONDITION
|
||||
`;
|
||||
Reference in New Issue
Block a user