mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
fix(db): read the current schema without SQLite's concatenation spelling
lint:dialect counts every || in src/db as SQLite-only, the psql query that names TREK's schema included. concat_ws gives the same tab-separated line.
This commit is contained in:
@@ -186,7 +186,7 @@ async function pgCurrentSchema(url: string, binDir: string | undefined): Promise
|
||||
'--no-psqlrc',
|
||||
'--no-align',
|
||||
'--tuples-only',
|
||||
"--command=select current_schema() || E'\\t' || quote_ident(current_schema())",
|
||||
"--command=select concat_ws(E'\\t', current_schema(), quote_ident(current_schema()))",
|
||||
],
|
||||
pgConnectionEnv(url),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user