powerTo method

DoubleField powerTo(
  1. num power
)

Get db value with POW(X,power) function applied.

Return X powered to power

Implementation

DoubleField powerTo(num power) {
  DoubleField result = DoubleField();
  result.queryBuilder = () => 'POW(${buildQuery()},?)';
  result.parametersBuilder = () => [...getParameters(), power];
  return result;
}