CountStatement class final

SELECT COUNT(*) FROM table WHERE filter.

Inheritance

Constructors

CountStatement(String table, {Expression? filter})
Counts the rows of table matching filter.
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 ok payload of this statement.
override
encodeOutput(int output) → Map<String, Object?>
The ok payload of output; 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