replace pg-promise with pg
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import PG from "pg-promise";
|
||||
import { default as config } from "../../cfg/config.json";
|
||||
import PG from "pg";
|
||||
import config from "../../cfg/config.json";
|
||||
|
||||
//const pgp = new PG();
|
||||
const sql = (new PG())(config.sql);
|
||||
|
||||
export default sql;
|
||||
export default new PG.Pool(config.sql);
|
||||
|
Reference in New Issue
Block a user