Created
May 24, 2020 16:45
-
-
Save J3698/b932f455d5086a575d238e00f7c2faf5 to your computer and use it in GitHub Desktop.
Setup pg in node
This file contains hidden or 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
const assert = require('assert'); | |
const Pool = require('pg').Pool; | |
const pool = new Pool({ | |
user: 'me', | |
host: 'localhost', | |
database: 'urlmem', | |
password: 'password', | |
port: 5432, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment