mqtt_server/lib/server/db-connector.js
Martin Donnelly 81f0222ff6 bus system
2016-11-13 22:21:18 +00:00

25 lines
368 B
JavaScript

'uses strict';
/**
*
* User: Martin Donnelly
* Date: 2016-03-11
* Time: 10:22
*
*/
var pgp = require('pg-promise')();
var amazonCN = {
dbinstance:'silvrdb',
host: 'silvrdb.cipyprijvzsw.eu-west-1.rds.amazonaws.com',
port: 5432,
database: 'heat',
user: 'martind2000',
password: '1V3D4m526i'
};
const cn = amazonCN;
exports.dbConnection = pgp(cn);