replace pg-promise with pg

This commit is contained in:
Flummi
2019-08-22 09:56:16 +00:00
parent 1f194e8267
commit 8c5fb99cd3
10 changed files with 60 additions and 73 deletions

View File

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