Skip to content

The only tool you need to know what is happening and how to fix it.

209 B
Raw Blame
'use strict';

const { Pool } = require('pg');

const pool = new Pool({
  connectionString: process.env.DATABASE_URL,
  max: 20,
});

module.exports = {
  query: (text, params) => pool.query(text, params),
};