Is there a way to do an OR or IN query on the same property in IndexedDB?
Another word, how do I get the results for,
SELECT * FROM MyTable WHERE col
This is a simple query equivalent to your sql query using JsStore Library
var Connection = new JsStore.Instance("MyDatabase");
Connection.select({
From: "MyTable",
Where:{
columnA : {In:['ABC','DFT')]},
columnB : '123thd'
},
OnSuccess:function (results){
console.log(results);
},
OnError:function (error) {
console.log(error);
}
});
Hope this will save your time and code:).