change psql-lib from knex to postgres.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user