const { Pool, types } = require("pg");

// Configure pg parser to return DATE columns as raw 'YYYY-MM-DD' strings to prevent timezone offset shifts
types.setTypeParser(1082, val => val);

const pool = new Pool({
  user: "postgres",
  password: "madhu1402",
  host: "localhost",
  port: 5432,
  database: "Printmodule"
});

module.exports = pool;
