sqrt

Function sqrt 

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

SQRT - returns the square root of a number.

Returns Double type, preserves nullability.

§Example

use drizzle_core::expr::sqrt;

// SELECT SQRT(users.area)
let root = sqrt(users.area);