Первый коммит после распаковки архива

This commit is contained in:
2025-08-14 20:14:42 +03:00
commit 5d4e9ba201
354 changed files with 40492 additions and 0 deletions

22
db.js Normal file
View File

@@ -0,0 +1,22 @@
// db.js
require('dotenv').config();
const { Pool } = require('pg');
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
ssl: false
});
module.exports = {
/**
* Execute a SQL query using the shared connection pool.
* @param {string} text
* @param {any[]} [params]
*/
query: (text, params) => pool.query(text, params),
/**
* Expose the underlying pool for transactions or advanced usages.
*/
pool
};