Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
fix pg query
johnnyfishb38115a8232b
diff --git a/src/lib/dbQueries/postgresQuery.js b/src/lib/dbQueries/postgresQuery.jsindex ef4ab9e0..cf277eaf 100644--- a/src/lib/dbQueries/postgresQuery.js+++ b/src/lib/dbQueries/postgresQuery.js@@ -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;-`\ No newline at end of file+`+export const postgresQuery = minimizeQuery(rawPostgresQuery);\ No newline at end of file