psql search_path
This commit is contained in:
parent
659adca258
commit
e7ee063021
|
@ -5,6 +5,6 @@ import cfg from "./config.mjs";
|
|||
const db = postgres(cfg.sql);
|
||||
|
||||
if(cfg.sql.schema)
|
||||
await db.unsafe(`set schema '${cfg.sql.schema}';`);
|
||||
await db.unsafe(`set search_path to '${cfg.sql.schema}';`);
|
||||
|
||||
export default db;
|
||||
|
|
Loading…
Reference in New Issue
Block a user