-
Notifications
You must be signed in to change notification settings - Fork 664
Async
Andrey Gershun edited this page May 25, 2015
·
15 revisions
Sync version:
var result = alasql(sql, params)
Async version:
alasql(sql, params, function(result) {
// do something with result
});
It is impossible to use sync version with async operations like:
- IndexedDB functions
- INTO- and FROM-functions
This is the example:
var resSync = alasql('SELECT * FROM CSV("mydata.csv")')',[],function(resAsync){
console.log(resAsync);
});
console.log(resSync);
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo