enter message here

This commit is contained in:
Flummi
2022-05-14 12:59:35 +02:00
parent a97ed32c9f
commit 2ae986ccf1
10 changed files with 341 additions and 41 deletions

View File

@@ -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);