[TSM.ID].[11031972] PXE : Platform X Ecosystem I [118 Module -LIVE-]
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
const postgres = require('postgres');
|
||||
const client = postgres('postgresql://jumpa_admin:JumpaS3cur3%21%40%23@127.0.0.1:5432/jumpadb');
|
||||
|
||||
async function test() {
|
||||
try {
|
||||
const result = await client`SELECT 1 as num`;
|
||||
console.log('Database Connection OK:', result);
|
||||
} catch (e) {
|
||||
console.error('Database Connection Error:', e);
|
||||
} finally {
|
||||
await client.end();
|
||||
}
|
||||
}
|
||||
test();
|
||||
Reference in New Issue
Block a user