Commit | Line | Data |
---|---|---|
8d7e2786 | 1 | const sqlite3 = require('sqlite3'); |
badeb466 BA |
2 | const params = require("../config/parameters") |
3 | ||
0234201f | 4 | if (params.env == "development") sqlite3.verbose(); |
badeb466 | 5 | |
8d7e2786 BA |
6 | const DbPath = __dirname.replace("/utils", "/db/vchess.sqlite"); |
7 | const db = new sqlite3.Database(DbPath); | |
8 | ||
9 | module.exports = db; |