length

Function length 

Source
pub fn length<'a, V, E>(expr: E) -> SQLExpr<'a, V, BigInt, E::Nullable, Scalar>
where V: SQLParam + 'a, E: Expr<'a, V>, E::SQLType: Textual,
Expand description

LENGTH - returns the length of a string.

Returns BigInt type, preserves nullability.

§Example

use drizzle_core::expr::length;

// SELECT LENGTH(users.name)
let name_len = length(users.name);