sqlPow function

Expression<num> sqlPow(
  1. Expression<num> base,
  2. Expression<num> exponent
)

Raises base to the power of exponent.

This function is equivalent to pow, except that it evaluates to null instead of NaN.

This function is only available when using a NativeDatabase.

Implementation

Expression<num> sqlPow(Expression<num> base, Expression<num> exponent) {
  return FunctionCallExpression('pow', [base, exponent]);
}