master #50
@ -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