Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import promise from 'bluebird';
- import pgPromise from 'pg-promise';
- import config from '../../config';
- const options = {promiseLib: promise};
- const pgp = pgPromise(options);
- const db = pgp(config.database);
- module.exports = db;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement