Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created Mar 15, 2017
Embed
What would you like to do?
Objeto de configuração da conexão com o banco de dados para utilizar o smn-pg
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