mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrandDBWork.git
synced 2025-01-10 21:35:07 +00:00
29 lines
369 B
JavaScript
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);
|
|
|