Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const config = require('../config');
- module.exports = require('knex')({
- client: 'mysql',
- connection: {
- // socketPath : '/Applications/MAMP/tmp/mysql/mysql.sock',
- host : config.db.host,
- user : config.db.user,
- password : config.db.password,
- database : config.db.database,
- timezone: config.db.timezone
- },
- pool: { min: 0, max: config.db.connectionLimit }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement