-
Notifications
You must be signed in to change notification settings - Fork 680
promise
Mathias Rangel Wulff edited this page Jan 26, 2016
·
7 revisions
You can use promise
notation for AlaSQL
alasql.promise('SELECT * FROM XLS("mydata.xls") GROUP BY name WHERE lastname LIKE "A%" and city = "London"')
.then(function(res){
console.log(res);
}).catch(function(err){
console.log('error:', err);
});
Please make sure promise
is supported - for example by including es6-promise - if using alasql in the browser.
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo