projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Save current state (unmerged, broken, not working...)
[vchess.git]
/
utils
/
database.js
diff --git a/utils/database.js
b/utils/database.js
new file mode 100644
(file)
index 0000000..
39c7e5e
--- /dev/null
+++ b/
utils/database.js
@@ -0,0
+1,5
@@
+const sqlite3 = require('sqlite3');
+const DbPath = __dirname.replace("/utils", "/db/vchess.sqlite");
+const db = new sqlite3.Database(DbPath);
+
+module.exports = db;