Skip to main content

lower

Function lower 

Source
pub fn lower<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Text, E::Nullable, E::Aggregate, E::Sources>
where V: SQLParam + 'a, E: Expr<'a, V>, E::SQLType: Textual,
Expand description

Converts text to lower case (LOWER).

The argument must be text. The result is text and keeps the argument’s nullability.

§Examples

assert_eq!(lower(users.email).sql(), r#"LOWER ("users"."email")"#);