where method

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

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>, Expr<E>, Expr<F>)> where(
  Expr<bool?> Function(
    Expr<A> a,
    Expr<B> b,
    Expr<C> c,
    Expr<D> d,
    Expr<E> e,
    Expr<F> f,
  )
  conditionBuilder,
) {
  final (handle, where) = _build(conditionBuilder);
  return Query._(
    _context,
    _expressions,
    (e) => WhereClause._(_from(e), handle, where),
  );
}