초기 PM 소스 전체 업로드

This commit is contained in:
koj729
2026-06-12 17:14:03 +09:00
commit 4e33c9a02a
1769 changed files with 377797 additions and 0 deletions

14
db/index.js Normal file
View File

@@ -0,0 +1,14 @@
const pool = require('./pool.js');
require('dotenv').config();
module.exports = async () => {
let client;
try {
client = await pool.connect();
console.log(`📡 [db/index.js] ${process.env.DEPLOYMENT_TYPE} DB 연결 성공`);
} catch (err) {
console.error('📡 [db/index.js] DB 연결 에러:', err.stack);
} finally {
client.release(); // 연결 객체를 풀에 반환합니다.
}
};