where method

Query<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)> where(
  1. Expr<bool?> conditionBuilder(
    1. Expr<A> a,
    2. Expr<B> b,
    3. Expr<C> c,
    4. Expr<D> d,
    )
)

Filter Query using WHERE clause.

Returns a Query retaining rows from this Query where the expression returned by conditionBuilder evaluates to true.

Implementation

Query<(Expr<A>, Expr<B>, Expr<C>, Expr<D>)> where(
  Expr<bool?> Function(Expr<A> a, Expr<B> b, Expr<C> c, Expr<D> d)
  conditionBuilder,
) {
  final (handle, where) = _build(conditionBuilder);
  return Query._(
    _context,
    _expressions,
    (e) => WhereClause._(_from(e), handle, where),
  );
}