ceil

Function ceil 

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

CEIL / CEILING - rounds a number up to the nearest integer.

Returns Double type, preserves nullability.

§Example

use drizzle_core::expr::ceil;

// SELECT CEIL(users.price)
let ceiling = ceil(users.price);