Browse Source
Merge pull request #2716 from mslourens/custom_schema_support
Retrieve all columns from all not internal tables
gh-pages
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
packages/server/src/integrations/postgres.ts
|
|
|
@ -126,7 +126,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 |
|
|
|
|