Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. const config = require('../config');
  2.  
  3. module.exports = require('knex')({
  4. client: 'mysql',
  5. connection: {
  6. // socketPath : '/Applications/MAMP/tmp/mysql/mysql.sock',
  7. host : config.db.host,
  8. user : config.db.user,
  9. password : config.db.password,
  10. database : config.db.database,
  11. timezone: config.db.timezone
  12. },
  13. pool: { min: 0, max: config.db.connectionLimit }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement