Add Vchess variant (draft)
[vchess.git] / server / utils / database.js
... / ...
CommitLineData
1const sqlite3 = require('sqlite3');
2const path = require('path');
3const params = require("../config/parameters")
4
5if (params.env == "development") sqlite3.verbose();
6
7const DbPath = __dirname.replace(
8 `${path.sep}utils`,
9 `${path.sep}db${path.sep}vchess.sqlite`);
10const db = new sqlite3.Database(DbPath);
11
12module.exports = db;