UNPKG

alasql

Version:

AlaSQL.js - JavaScript SQL database library for relational and graph data manipulation with support of localStorage, IndexedDB, and Excel

18 lines (16 loc) 369 B
var alasql = require('../dist/alasql.min.js'); function a(filename) { it(filename,function(done){ alasql('SOURCE "world/'+filename+'"'); done(); }); }; describe('World database',function(){ it('Setup',function(done){ this.timeout(3000); alasql('CREATE DATABASE world; USE world'); alasql('SOURCE "world/world.sql"'); done(); }); a('test001.sql'); });