whereBetween function

dynamic whereBetween (dynamic lhs, dynamic rhs)

Matcher for matching column values where lhs <= value <= rhs when using Query.where.

See Query.where. Example:

  var query = new Query<Employee>()
    ..where.salary = whereBetween(80000, 100000);

Implementation

dynamic whereBetween(dynamic lhs, dynamic rhs) {
  return new RangeMatcherExpression(lhs, rhs, true);
}