initial commit
This commit is contained in:
commit
cd234531b9
37 changed files with 5529 additions and 0 deletions
14
backend/test.js
Normal file
14
backend/test.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
const db = require('./db');
|
||||
|
||||
async function testConnection() {
|
||||
try {
|
||||
await db.raw('SELECT 1+1 as result');
|
||||
console.log('Database connected successfully!');
|
||||
} catch (error) {
|
||||
console.error('Database connection failed:', error);
|
||||
} finally {
|
||||
await db.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
testConnection();
|
Loading…
Add table
Add a link
Reference in a new issue