count method

IntField count()

Get an IntField with count of this field values.

Implementation

IntField count() {
  IntField result = IntField();
  result.queryBuilder = () => 'COUNT(${buildQuery()})';
  result.parametersBuilder = () => [...getParameters()];
  return result;
}