CountStatement class final
SELECT COUNT(*) FROM table WHERE filter.
- Inheritance
-
- Object
- Statement<
int> - ReadStatement<
int> - CountStatement
Constructors
- CountStatement(String table, {Expression? filter})
-
Counts the rows of
tablematchingfilter.const
Properties
- filter → Expression?
-
The rows to count; every row when
null.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< int, DbError> -
The output encoded in an
okpayload of this statement.override -
encodeOutput(
int 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