Some advances in challenge handling (server+client)
[vchess.git] / server / utils / database.js
... / ...
CommitLineData
1const sqlite3 = require('sqlite3');
2const params = require("../config/parameters")
3
4if (params.env == "development")
5 sqlite3.verbose();
6
7const DbPath = __dirname.replace("/utils", "/db/vchess.sqlite");
8const db = new sqlite3.Database(DbPath);
9
10module.exports = db;