trim

Function trim 

Source
pub fn trim<'a, V, E>(expr: E) -> SQLExpr<'a, V, Text, E::Nullable, Scalar>
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);