log

Function log 

Source
pub fn log<'a, V, E1, E2>(
    base: E1,
    value: E2,
) -> SQLExpr<'a, V, Double, <E1::Nullable as NullOr<E2::Nullable>>::Output, Scalar>
where V: SQLParam + 'a, E1: Expr<'a, V>, E1::SQLType: Numeric, E2: Expr<'a, V>, E2::SQLType: Numeric, E1::Nullable: NullOr<E2::Nullable>, E2::Nullable: Nullability,
Expand description

LOG - returns the logarithm of a number with a specified base.

Returns Double type. The result is nullable if either input is nullable.

§Example

use drizzle_core::expr::log;

// SELECT LOG(2, users.value)
let log_base_2 = log(2, users.value);