sql fick ja
This commit is contained in:
parent
4261972931
commit
57d79a46ac
|
@ -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
6
src/lib/sql.mjs
Normal 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);
|
Loading…
Reference in New Issue
Block a user