dbgate/packages/engines/postgres/sql/views.js
2020-06-29 19:49:54 +02:00

10 lines
269 B
JavaScript

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'
`;