QueryResult class
Represents the result of a database query.
Constructors
-
QueryResult({List<
Map< rows = const [], int affectedRows = 0, dynamic lastInsertId})String, dynamic> > -
const
Properties
- affectedRows → int
-
The number of rows affected by the query (for INSERT/UPDATE/DELETE).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- lastInsertId → dynamic
-
The last inserted ID (if applicable).
final
-
rows
→ List<
Map< String, dynamic> > -
The rows returned by the query.
Each row is a map of column names to values.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited