obrandDBWork/units/db-connector.js
Martin Donnelly 2b60bc78cf Init
2016-03-15 14:49:39 +00:00

29 lines
369 B
JavaScript

'uses strict';
/**
*
* User: Martin Donnelly
* Date: 2016-03-11
* Time: 10:22
*
*/
var pgp = require('pg-promise')();
var monitor = require('pg-monitor');
var options = {};
monitor.attach(options);
var cn = {
host:'localhost',
port: 5432,
database: 'oBrand',
user:'obrand',
password:'obrand'
};
//exports pgp(cn);
exports.dbConnection = pgp(cn);