QueryEvent class

Event payload emitted for every query execution.

Constructors

QueryEvent({required QueryPlan plan, required StatementPreview preview, required Duration duration, int? rows, Object? error, StackTrace? stackTrace, String? connectionName, String? connectionDatabase, String? connectionTablePrefix})

Properties

connectionDatabase String?
final
connectionName String?
Connection metadata when available.
final
connectionTablePrefix String?
final
duration Duration
Wall-clock duration for the execution.
final
error Object?
Error thrown by the driver, when present.
final
hashCode int
The hash code for this object.
no setterinherited
plan QueryPlan
Plan that was sent to the driver.
final
preview StatementPreview
Driver-provided statement preview.
final
rows int?
Number of rows returned, if available.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
Stack trace captured when error is populated.
final
succeeded bool
Whether the query completed successfully.
no setter

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