fix pg query

This commit is contained in:
johnnyfish
2024-08-17 23:59:06 +03:00
committed by Jonathan Fishner
parent f74f208a86
commit b38115a823

View File

@@ -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);