mirror of
https://github.com/chartdb/chartdb.git
synced 2026-01-17 09:30:28 -06:00
fix pg query
This commit is contained in:
committed by
Jonathan Fishner
parent
f74f208a86
commit
b38115a823
@@ -1,4 +1,6 @@
|
||||
export const postgresQuery = `
|
||||
import { minimizeQuery } from './minimizeQuery';
|
||||
|
||||
const rawPostgresQuery = `
|
||||
WITH fk_info AS (
|
||||
select array_to_string(array_agg(CONCAT('{"schema":"', schema_name, '"',
|
||||
',"table":"', table_name, '"',
|
||||
@@ -111,4 +113,5 @@ select CONCAT('{ "fk_info": [', coalesce(fk_metadata, ''),
|
||||
'], "server_name": "', '', '", "version": "', '',
|
||||
'"}') as " "
|
||||
from cols,indexes_metadata, tbls, config, views, fk_info;
|
||||
`
|
||||
`
|
||||
export const postgresQuery = minimizeQuery(rawPostgresQuery);
|
||||
Reference in New Issue
Block a user