Files
aurorabot/shared/scripts/debug-db.ts
syntaxbullet 9a2fc101da
Some checks failed
Deploy to Production / test (push) Failing after 29s
Deploy to Production / build (push) Has been skipped
Deploy to Production / deploy (push) Has been skipped
chore: Enhance database debugging setup and expand test mocks for Drizzle queries and Discord API interactions.
2026-01-30 16:12:15 +01:00

17 lines
409 B
TypeScript

import postgres from "postgres";
const connectionString = "postgresql://auroradev:auroradev123@127.0.0.1:5432/aurora_test";
console.log("Connecting to:", connectionString);
const sql = postgres(connectionString);
try {
const result = await sql`SELECT 1 as val`;
console.log("Success:", result);
await sql.end();
} catch (e) {
console.error("Connection failed:", e);
await sql.end();
}