spee.ch/config/mysqlConfig.js

17 lines
412 B
JavaScript
Raw Normal View History

function MysqlConfig () {
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
}
const {database, username, password} = config;
this.database = database;
this.username = username;
this.password = password;
};
};
module.exports = new MysqlConfig();