Add Brotherhood, Maharajah (special version) + Dobutsu variants
[vchess.git] / server / utils / database.js
CommitLineData
8d7e2786 1const sqlite3 = require('sqlite3');
1ad88021 2const path = require('path');
badeb466
BA
3const params = require("../config/parameters")
4
0234201f 5if (params.env == "development") sqlite3.verbose();
badeb466 6
1ad88021
BA
7const DbPath = __dirname.replace(
8 `${path.sep}utils`,
9 `${path.sep}db${path.sep}vchess.sqlite`);
8d7e2786
BA
10const db = new sqlite3.Database(DbPath);
11
12module.exports = db;