AggregateStatement class final
SELECT function(field) FROM table WHERE filter; null when no row has a
value (for sum and avg, a number).
- Inheritance
-
- Object
- Statement<
Object?> - ReadStatement<
Object?> - AggregateStatement
Constructors
- AggregateStatement(String table, AggregateFunction function, String field, {Expression? filter})
-
Aggregates
fieldoftablewithfunction.const
Properties
- field → String
-
Field path aggregated.
final
- filter → Expression?
-
The rows aggregated; every row when
null.final - function → AggregateFunction
-
How the values combine.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → String
-
The table the statement reads or writes.
finalinherited
Methods
-
decodeOutput(
Object? payload) → Result< Object?, DbError> -
The output encoded in an
okpayload of this statement.override -
encodeOutput(
Object? output) → Map< String, Object?> -
The
okpayload ofoutput; engines written in Dart use it so the answer shape stays defined in one place.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The protocol form (
{"op": ..., "table": ..., ...}).override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited