Query
opened this issue · comments
Hi,
I want to make this request :
SELECT * FROM Table WHERE identifier='xxxxxxxxxx'
It's possible to make this for my request ?
db.from('Table').all().where('identifier=?', 'xxxxxxxxxx').then(function(doSomething){...}, function(error){...});
Or order to perform that query any query options must be supplied before "all" is invoked as .all() is an action method. So the correct way would be
var ds = db.from("Table");
ds.where('identifier=?', 'xxxxxxxxxx').all().then(function(doSomething){...}, function(error){...});
The same applies for "forEach", "map", "one", "first","last"....