initial commit
Change-Id: I80f911b3ee68264927839ebee517d37bc3b71c9b
This commit is contained in:
11
scripts/check-db.js
Normal file
11
scripts/check-db.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// DB 연결 빠른 확인: `npm run db:check`
|
||||
import { pingDb, pool } from "../src/db.js";
|
||||
|
||||
try {
|
||||
console.log("DB OK:", await pingDb());
|
||||
} catch (e) {
|
||||
console.error("DB FAIL:", e.message);
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
await pool.end();
|
||||
}
|
||||
Reference in New Issue
Block a user