Created
March 15, 2017 02:59
-
-
Save vmussak/b0a6b5c5fc894b5944c25bdd519daf51 to your computer and use it in GitHub Desktop.
Objeto de configuração da conexão com o banco de dados para utilizar o smn-pg
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
let config = { | |
user: 'username', | |
database: 'database', | |
password: 'pass', | |
host: 'host', | |
port: 5432, | |
max: 10, | |
idleTimeoutMillis: 30000 | |
}; | |
const pg = require('smn-pg')(config); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment