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>
where V: SQLParam + 'a, E: Expr<'a, V>, E::SQLType: Textual,
Expand description

LOWER - converts string to lowercase.

Preserves the nullability of the input expression.

ยงExample

use drizzle_core::expr::lower;

// SELECT LOWER(users.email)
let email_lower = lower(users.email);