const { Pool } = require('pg');
/**
* Represents a PostgreSQL connection pool.
* @typedef {Object} Pool
* @property {string} user - The username for connecting to the database.
* @property {string} host - The host where the PostgreSQL database server is located.
* @property {string} database - The name of the PostgreSQL database.
* @property {number} port - The port number to connect to the PostgreSQL database server.
*/
/**
* Represents a pool of PostgreSQL connections.
* @type {Pool}
*/
const pool = new Pool({
user: 'zeeshan',
host: 'localhost',
database: 'to_do_app',
port: 5432,
// Other configurations...
});
module.exports = {
pool // Export the pool variable
};