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