Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
p._loadDbTables = function*(tablesQueries) {
this._debug('_loadDbTables');
if (tablesQueries) {
this._logger.info('Loading pre load tables');
for (let tableName in tablesQueries) {
alasql.tables[tableName] = {};
let data = yield * this._queryGen(tablesQueries[tableName]);
alasql.tables[tableName].data = data;
}
}
};
p._clearAlaSqlTables = function() {
this._debug('_clearAlaSqlTables');
for (let table in alasql.tables) {
delete alasql.tables[table];
}
};
p._loadDbTables = function*(tablesQueries) {
this._debug('_loadDbTables');
if (tablesQueries) {
this._logger.info('Loading pre load tables');
for (let tableName in tablesQueries) {
alasql.tables[tableName] = {};
let data = yield * this._queryGen(tablesQueries[tableName]);
alasql.tables[tableName].data = data;
}
}
};