sql fick ja

This commit is contained in:
Flummi 2018-02-16 16:53:34 +01:00
parent 4261972931
commit 57d79a46ac
2 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,7 @@
"dependencies": { "dependencies": {
"express": "^4.16.2", "express": "^4.16.2",
"express-handlebars": "^3.0.0", "express-handlebars": "^3.0.0",
"highlight.js": "^9.12.0" "highlight.js": "^9.12.0",
"nodejs-mysql": "git://github.com/Flummi/nodejs-mysql.git"
} }
} }

6
src/lib/sql.mjs Normal file
View File

@ -0,0 +1,6 @@
import cfg from "../../cfg/config";
import mysql from "nodejs-mysql";
//const db = mysql.default.getInstance(cfg.sql);
export default mysql.default.getInstance(cfg.sql);