sqlSqrt function

Expression<num> sqlSqrt(
  1. Expression<num> value
)

Calculates the square root of value in sql.

This function is equivalent to sqrt, except that it returns null instead of NaN for negative values.

This function is only available when using a NativeDatabase.

Implementation

Expression<num> sqlSqrt(Expression<num> value) {
  return FunctionCallExpression('sqrt', [value]);
}