Created
December 22, 2019 21:49
-
-
Save santiagovazquez/3c87610016acf47c87129c6018623000 to your computer and use it in GitHub Desktop.
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
// 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