pub fn power<'a, V, E1, E2>(
base: E1,
exponent: E2,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Double, <E1::Nullable as NullOr<E2::Nullable>>::Output, <E1::Aggregate as AggOr<E2::Aggregate>>::Output>Expand description
POWER - raises a number to a power.
Returns a dialect-aware double type. The result is nullable if either input is nullable.
ยงExample
use drizzle_core::expr::power;
// SELECT POWER(users.base, 2)
let squared = power(users.base, 2);