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:
Isaias Tavares
2026-11-04 22:54:14 -03:00
parent 298f0409d5
commit 53bd8505cd
+1 -1
View File
@@ -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),
);