projects
/
vchess.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Attempt to debug corr challenge refusal
[vchess.git]
/
server
/
utils
/
database.js
1
const
sqlite3
=
require
(
'sqlite3'
);
2
const
params
=
require
(
"../config/parameters"
)
3
4
if
(
params
.
env
==
"development"
)
5
sqlite3
.
verbose
();
6
7
const
DbPath
=
__dirname
.
replace
(
"/utils"
,
"/db/vchess.sqlite"
);
8
const
db
=
new
sqlite3
.
Database
(
DbPath
);
9
10
module
.
exports
=
db
;