Restore removed files

This commit is contained in:
2026-01-30 22:24:50 -05:00
parent ac39257a51
commit 89d518b57f
187 changed files with 66365 additions and 316 deletions

View File

@@ -0,0 +1,21 @@
const { Pool } = require('pg');
let pool;
function initPool(config) {
pool = new Pool(config);
return pool;
}
async function getConnection() {
if (!pool) {
throw new Error('Database pool not initialized');
}
return pool.connect();
}
module.exports = {
initPool,
getConnection,
getPool: () => pool
};