mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
12 lines
284 B
JavaScript
12 lines
284 B
JavaScript
const { query } = require('../lib/db');
|
|
|
|
async function testDb() {
|
|
try {
|
|
const rows = await query('SELECT 1 + 1 AS result');
|
|
console.log('Database test successful:', rows);
|
|
} catch (err) {
|
|
console.error('Database test failed:', err);
|
|
}
|
|
}
|
|
|
|
testDb(); |