Skip to main content

lt

Function lt 

Source
pub fn lt<'a, V, L, R>(
    left: L,
    right: R,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Bool, NonNull, <L::Aggregate as AggregateKind>::Or<<R as ComparisonOperand<'a, V, L>>::Aggregate>, (Arg<<L as Expr<'a, V>>::Nullable, <L as ExprSources>::Sources>, Arg<<R as ComparisonOperand<'a, V, L>>::Nullable, <R as ComparisonOperand<'a, V, L>>::Sources>)>
where V: SQLParam + 'a, L: Expr<'a, V>, R: ComparisonOperand<'a, V, L>, L::SQLType: Compatible<<R as ComparisonOperand<'a, V, L>>::SQLType>,
Expand description

Less-than comparison (<).

Renders left < right. Both sides must have compatible SQL types. The result is the dialect’s boolean. It is NULL when either side is, and an aggregate when either side is.

§Examples

assert_eq!(lt(users.age, 65).sql(), r#""users"."age" < ?"#);