How to use the alasql.tables function in alasql

To help you get started, we’ve selected a few alasql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yoavfeld / sql-to-json / lib / SqlToJson.js View on Github external
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;
		}

	}
};
github yoavfeld / sql-to-json / lib / SqlToJson.js View on Github external
p._clearAlaSqlTables = function() {
	this._debug('_clearAlaSqlTables');
	for (let table in alasql.tables) {
		delete alasql.tables[table];
	}
};
github yoavfeld / sql-to-json / lib / SqlToJson.js View on Github external
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;
		}

	}
};

alasql

Use SQL to select and filter javascript data - including relational joins and search in nested objects (JSON). Export to and import from Excel and CSV

MIT
Latest version published 1 month ago

Package Health Score

89 / 100
Full package analysis