Skip to content

Instantly share code, notes, and snippets.

@santiagovazquez
Created December 22, 2019 21:49
Show Gist options
  • Save santiagovazquez/3c87610016acf47c87129c6018623000 to your computer and use it in GitHub Desktop.
Save santiagovazquez/3c87610016acf47c87129c6018623000 to your computer and use it in GitHub Desktop.
// Load the AWS SDK
const knex = require('knex');
const env = require('./env');
const dbConfig = {
client: 'pg',
connection: {
host : env.DB_HOST,
user : env.DB_USER,
password : env.DB_PASSWORD,
database : env.DB_NAME,
port: env.DB_PORT,
},
pool: { min: 0, max: 1 }
};
module.exports = knex(dbConfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment