diff --git a/database/database.js b/database/database.js index 766168d..f166980 100644 --- a/database/database.js +++ b/database/database.js @@ -18,7 +18,7 @@ async function executeQuery(query, values = []) { return result.rows; } -async function InitializeDatabase() { +async function Initialize() { console.log("Initializing database...") const sql = fs.readFileSync('database/init_database.sql').toString(); await executeQuery(sql); @@ -35,7 +35,13 @@ async function checkForDatabaseInitialization() { const scoresSchemaExists = result.length !== 0; if(!scoresSchemaExists) { - InitializeDatabase(); + Initialize(); } } -checkForDatabaseInitialization(); \ No newline at end of file +checkForDatabaseInitialization(); + + + + + +exports.executeQuery = executeQuery; \ No newline at end of file