pub fn all<'a, V, L>(
conditions: L,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Bool, L::Nullable, L::Aggregate>where
V: SQLParam + 'a,
L: ConditionList<'a, V>,Expand description
Logical AND of every condition in a list.
The flat form of and: all((a, b, c)) renders
(a AND b AND c) instead of nesting and(a, and(b, c)). None elements
are skipped, and a list with no present element renders as TRUE.
A bare tuple already means the same thing in condition position
(.r#where((a, b, c))); reach for all where a tuple would be read as a
column list instead — most notably a join’s ON condition, which accepts
any SQL fragment rather than a typed condition.
use drizzle_core::expr::{all, eq, gt};
all((eq(users.active, true), gt(users.age, 18)))
// ("users"."active" = ? AND "users"."age" > ?)