QueryResult class

Constructors

QueryResult({List<String> columns = const [], List<List<Object?>> rows = const [], int affected = 0, String? message})
const
QueryResult.message(String msg, {int affected = 0})
factory

Properties

affected int
Number of rows affected (INSERT/UPDATE/DELETE).
final
columns List<String>
Column names of the result set, when applicable.
final
hashCode int
The hash code for this object.
no setterinherited
message String?
Optional human-readable status message (DDL etc).
final
rows List<List<Object?>>
Result rows. Each row aligns with columns.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

empty → const QueryResult