Added comments

This commit is contained in:
2025-06-09 09:48:31 +02:00
parent 0c76b852eb
commit 8b673c67d3
7 changed files with 40 additions and 1 deletions
+4
View File
@@ -2,8 +2,10 @@ const Database = require("better-sqlite3");
const logger = require("../utils/logger.util");
const db_conf = require("../config/db.conf");
// Holds the database class object
var db;
// Connect to SQLite database
function connect() {
try {
logger.info("Connecting to Database...");
@@ -14,10 +16,12 @@ function connect() {
}
}
// Database object getter
function getDB() {
return db;
}
// Database object setter
function setDB(newDb) {
db = newDb;
}