Function sign
Source pub fn sign<'a, V, E>(
expr: E,
) -> SQLExpr<'a, V, E::SQLType, E::Nullable, Scalar>
Expand description
SIGN - returns the sign of a number (-1, 0, or 1).
Returns the same numeric type, preserves nullability.
§Example
ⓘuse drizzle_core::expr::sign;
let balance_sign = sign(users.balance);