Skip to main content

trim

Function trim 

Source
pub fn trim<'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

TRIM - removes leading and trailing whitespace.

Preserves the nullability of the input expression.

ยงExample

use drizzle_core::expr::trim;

// SELECT TRIM(users.name)
let trimmed = trim(users.name);