Skip to content

Instantly share code, notes, and snippets.

@olalonde
Created June 14, 2013 19:33
Show Gist options
  • Save olalonde/5784581 to your computer and use it in GitHub Desktop.
Save olalonde/5784581 to your computer and use it in GitHub Desktop.
q = q.where(exp.evaluate({
eql: function (operands) {
debugger;
var attribute = operands[0],
value = operands[1];
return table[attribute].equal(value);
},
notEql: function (operands) {
debugger;
var attribute = operands[0],
value = operands[1];
return table[attribute].notEqual(value);
},
or: function (operands) {
debugger;
var first_operand = operands.shift();
return first_operand.or(operands);
},
and: function (operands) {
debugger;
var first_operand = operands.shift();
return first_operand.and(operands);
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment