postgre analyser

This commit is contained in:
Jan Prochazka
2020-06-29 20:21:37 +02:00
parent 3c1be39976
commit 71861779e8
3 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
module.exports = `
select
routine_name as "pureName",
routine_schema as "schemaName",
routine_definition as "createSql",
md5(routine_definition) as "hashCode",
routine_type as "objectType"
from
information_schema.routines where routine_schema != 'information_schema' and routine_schema != 'pg_catalog' and routine_type is not null
`;