This commit is contained in:
Josh Harvey 2016-10-21 17:46:11 +03:00
parent 03edd9c7e0
commit 6422c36644
6 changed files with 71 additions and 10 deletions

4
lib/db.js Normal file
View file

@ -0,0 +1,4 @@
const pgp = require('pg-promise')()
const psqlUrl = require('../lib/options').postgresql
module.exports = {db: pgp(psqlUrl)}