Created
September 22, 2021 14:00
-
-
Save SidneyAllen/e704768c41fd6f6907e9b7fa35cf9e0f to your computer and use it in GitHub Desktop.
av-bulk-pool-connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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