enter message here
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
//import knex from "knex";
|
||||
import postgres from "postgres";
|
||||
import cfg from "./config.mjs";
|
||||
|
||||
const db = postgres(cfg.sql);
|
||||
|
||||
if(cfg.sql.schema)
|
||||
await db.unsafe(`set search_path to '${cfg.sql.schema}';`);
|
||||
|
||||
export default db;
|
||||
export default postgres(cfg.sql);
|
||||
|
||||
Reference in New Issue
Block a user