import config

This commit is contained in:
Joe Dowd 2020-07-28 04:32:12 +01:00
parent f4db30e988
commit 5ac5c30fd6
2 changed files with 4 additions and 2 deletions

View file

@ -1,8 +1,9 @@
var MysqlInterface = require('sync-mysql');
var config = require('../config.js');
class Mysql {
constructor(config) {
this.connection = new MysqlInterface(config);
constructor(msConfig) {
this.connection = new MysqlInterface(msConfig);
}
exec(query) {

View file

@ -1,4 +1,5 @@
const { db } = require("./databases");
var config = require('../config.js');
class Sqlite {
constructor(connection) {