2016-08-11 14:34:52 +00:00
|
|
|
'uses strict';
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* User: Martin Donnelly
|
|
|
|
* Date: 2016-03-11
|
|
|
|
* Time: 10:22
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
var pgp = require('pg-promise')();
|
|
|
|
|
2016-09-06 11:23:48 +00:00
|
|
|
/*
|
2016-08-11 14:34:52 +00:00
|
|
|
var cn = {
|
|
|
|
host: 'localhost',
|
|
|
|
port: 5432,
|
|
|
|
database: 'mdot',
|
|
|
|
user: 'postgres',
|
|
|
|
password: ''
|
|
|
|
};
|
2016-09-06 11:23:48 +00:00
|
|
|
*/
|
2016-08-26 08:45:54 +00:00
|
|
|
|
|
|
|
// ElephantSql settings
|
|
|
|
|
2016-09-06 11:23:48 +00:00
|
|
|
var cn = {
|
2016-08-26 08:45:54 +00:00
|
|
|
host: 'jumbo.db.elephantsql.com',
|
|
|
|
port: 5432,
|
2016-09-06 11:23:48 +00:00
|
|
|
database: 'amlrxqev',
|
|
|
|
user: 'amlrxqev',
|
|
|
|
password: 'K11cvCplk0--oNafsYj4ISN-rVQmVS3y'
|
|
|
|
};
|
2016-08-11 14:34:52 +00:00
|
|
|
|
|
|
|
exports.dbConnection = pgp(cn);
|
|
|
|
|