spee.ch/config/mysqlConfig.js
2018-03-12 19:33:09 -07:00

16 lines
412 B
JavaScript

function MysqlConfig () {
this.database = 'default';
this.username = 'default';
this.password = 'default';
this.configure = (config) => {
if (!config) {
return console.log('No MySQL config received.');
}
const {database, username, password} = config;
this.database = database;
this.username = username;
this.password = password;
};
};
module.exports = new MysqlConfig();