Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created March 15, 2017 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/b0a6b5c5fc894b5944c25bdd519daf51 to your computer and use it in GitHub Desktop.
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
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