Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import promise from 'bluebird';
  2. import pgPromise from 'pg-promise';
  3. import config from '../../config';
  4.  
  5. const options = {promiseLib: promise};
  6. const pgp = pgPromise(options);
  7.  
  8. const db = pgp(config.database);
  9.  
  10. module.exports = db;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement