JsStore supports following operators : -

  • " > " : Finds value greater than supplied value.
  • " < " : Finds value less than supplied value.
  • " >= " : Finds value greater than or equal to supplied value.
  • " <= " : Finds value less than or equal to supplied value.
  • " - " : Finds value between two supplied value.
Sql
  • Select * From Table_Name;
  • Where
  • Column_Name > some_value
JsStore
  • Connection.select({
  • From: "Table_Name",
  • Where: {
  • Column_Name: {'>':some_value},
  • },
  • OnSuccess:function (results){
  • //results will be array of objects.
  • console.log(results);
  • },
  • OnError:function (error) {
  • alert(error.value);
  • }
  • };

Example Next