초기 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

10
db/pool.js Normal file
View File

@@ -0,0 +1,10 @@
const { Pool } = require('pg');
require('dotenv').config();
const env = `${process.env.DEPLOYMENT_TYPE}_DB`; // ONPREMISE_DB / CLOUD_DB
const config= require('./config.js')[env];
const pool = new Pool(config);
// 커넥션 설정: https://jojoldu.tistory.com/634
module.exports = pool;