change psql-lib from knex to postgres.js

This commit is contained in:
Flummi
2022-03-31 13:34:51 +02:00
parent f750a9a60f
commit c498a33cbe
20 changed files with 689 additions and 973 deletions

View File

@@ -1,7 +1,11 @@
import knex from "knex";
//import knex from "knex";
import postgres from "postgres";
import cfg from "./config.mjs";
export default knex({
/*export default knex({
client: 'pg',
connection: cfg.sql
});
});*/
//export const db = postgres(cfg.sql);
export default postgres(cfg.sql);