spee.ch/config/mysqlConfig.js

18 lines
453 B
JavaScript
Raw Normal View History

function mysql () {
this.database = 'default';
this.username = 'default';
this.password = 'default';
2018-03-13 03:26:03 +01:00
this.configure = (config) => {
if (!config) {
return console.log('No MySQL config received.');
2018-03-13 03:26:03 +01:00
}
2018-03-27 22:21:59 +02:00
console.log('configuring mysql credentials...');
2018-03-13 03:26:03 +01:00
const {database, username, password} = config;
this.database = database;
this.username = username;
this.password = password;
};
};
module.exports = new mysql();