Skip to content

Instantly share code, notes, and snippets.

@SidneyAllen
Created September 22, 2021 14:00
Show Gist options
  • Save SidneyAllen/e704768c41fd6f6907e9b7fa35cf9e0f to your computer and use it in GitHub Desktop.
Save SidneyAllen/e704768c41fd6f6907e9b7fa35cf9e0f to your computer and use it in GitHub Desktop.
av-bulk-pool-connection
// Require the pg module
const Pool = require('pg').Pool
// Create a Pool instance and connect to the database
const pool = new Pool({
user: '<YOUR_DATABASE_USER>',
host: 'localhost',
database: '<YOUR_DATABASE>',
password: '<YOUR_PASSWORD>',
port: 5432,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment