Fix SQL query to get completed games
[vchess.git] / server / utils / database.js
CommitLineData
8d7e2786 1const sqlite3 = require('sqlite3');
badeb466
BA
2const params = require("../config/parameters")
3
0234201f 4if (params.env == "development") sqlite3.verbose();
badeb466 5
8d7e2786
BA
6const DbPath = __dirname.replace("/utils", "/db/vchess.sqlite");
7const db = new sqlite3.Database(DbPath);
8
9module.exports = db;