spee.ch/config/mysqlConfig.js

14 lines
268 B
JavaScript
Raw Normal View History

function mysql () {
2018-03-28 01:08:01 +02:00
this.db = {};
this.configure = (db) => {
if (!db) {
return console.log('No MySQL config received.');
2018-03-13 03:26:03 +01:00
}
2018-03-28 01:08:01 +02:00
// configure credentials
console.log('configuring mysql...');
2018-03-28 01:08:01 +02:00
this.db = db;
};
};
module.exports = new mysql();