upper

Function upper 

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

UPPER - converts string to uppercase.

Preserves the nullability of the input expression.

ยงType Safety

โ“˜
// โœ… OK: Text column
upper(users.name);

// โŒ Compile error: Int is not Textual
upper(users.id);