round

Function round 

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

ROUND - rounds a number to the nearest integer (or specified precision).

Returns Double type, preserves nullability.

§Example

use drizzle_core::expr::round;

// SELECT ROUND(users.price)
let rounded = round(users.price);