1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Retrieve all columns from all not internal tables

This commit is contained in:
Maurits Lourens 2021-09-23 11:11:00 +02:00
parent 2cc90fbb81
commit baed83c406

View file

@ -105,7 +105,7 @@ module PostgresModule {
private readonly config: PostgresConfig
COLUMNS_SQL =
"select * from information_schema.columns where table_schema = 'public'"
"select * from information_schema.columns where not table_schema = 'information_schema' and not table_schema = 'pg_catalog'"
PRIMARY_KEYS_SQL = `
select tc.table_schema, tc.table_name, kc.column_name as primary_key