pub fn and_<T>(
lhs: impl Expressive<T>,
rhs: impl Expressive<T>,
) -> Expression<T>Expand description
Combines two conditions with AND: (lhs) AND (rhs).
Useful when you need explicit grouping — with_condition() already
combines multiple conditions with AND, but and_() lets you nest
it inside an or_():
ⓘ
use vantage_sql::primitives::*;
// (price > 100 AND in_stock = 1) OR (featured = 1)
or_(
and_(ident("price").gt(100), ident("in_stock").eq(true)),
ident("featured").eq(true),
)