AggregateExtension<T extends OrmEntity> extension
Extension providing aggregate functions for query results.
- on
-
- Query<
T>
- Query<
Methods
-
avg(
String expression, {String? alias}) → Query< T> -
Available on Query<
Adds anT> , provided by the AggregateExtension extensionAVGaggregate to the select projection. -
avgValue(
String expression, {String? alias}) → Future< num?> -
Available on Query<
Executes anT> , provided by the AggregateExtension extensionAVGaggregate and returns the result. -
countAggregate(
{String expression = '*', String? alias}) → Query< T> -
Available on Query<
Adds aT> , provided by the AggregateExtension extensionCOUNTaggregate to the select projection. -
max(
String expression, {String? alias}) → Query< T> -
Available on Query<
Adds aT> , provided by the AggregateExtension extensionMAXaggregate to the select projection. -
maxValue(
String expression, {String? alias}) → Future< num?> -
Available on Query<
Executes aT> , provided by the AggregateExtension extensionMAXaggregate and returns the result. -
min(
String expression, {String? alias}) → Query< T> -
Available on Query<
Adds aT> , provided by the AggregateExtension extensionMINaggregate to the select projection. -
minValue(
String expression, {String? alias}) → Future< num?> -
Available on Query<
Executes aT> , provided by the AggregateExtension extensionMINaggregate and returns the result. -
sum(
String expression, {String? alias}) → Query< T> -
Available on Query<
Adds aT> , provided by the AggregateExtension extensionSUMaggregate to the select projection. -
sumValue(
String expression, {String? alias}) → Future< num?> -
Available on Query<
Executes aT> , provided by the AggregateExtension extensionSUMaggregate and returns the result. -
withAggregate(
AggregateFunction function, String expression, {String? alias}) → Query< T> -
Available on Query<
Registers an aggregate projection, e.g.T> , provided by the AggregateExtension extensioncount('*').