MssqlQueryEvent class
What one statement did.
- Annotations
-
- @immutable
Constructors
- MssqlQueryEvent({required String sql, required Object parameters, required Duration elapsed, required MssqlOrmQueryKind kind, required bool inTransaction, int? rows, int? affectedRows, Object? failure, Duration? compileElapsed, Duration? queueWait, Duration? executionElapsed, Duration? mappingElapsed, Duration? relationLoadElapsed, int? decodedBytes, int? roundTrips, int? batchRows, String? queryName})
-
const
Properties
- affectedRows → int?
-
Rows changed, for a write.
final
- batchRows → int?
-
MssqlQueryOptions.batchRowsfor the command, when it had one.final - compileElapsed → Duration?
-
Time spent compiling SQL on this isolate. Null when the observer did
not see a compiler — a raw
session.queryhas none.final - decodedBytes → int?
-
Bytes the driver decoded for this result, when the driver measured it.
final
- elapsed → Duration
-
How long the call took from the session's point of view.
final
- executionElapsed → Duration?
-
Time the driver spent running the command after the gate opened.
final
- failed → bool
-
no setter
- failure → Object?
-
What the statement threw, when it threw.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inTransaction → bool
-
final
- kind → MssqlOrmQueryKind
-
Which kind of command ran.
final
- mappingElapsed → Duration?
-
Time spent mapping native rows onto generated types. Null on a session
observer: mapping happens above the session.
final
- parameters → Object
-
Bound parameters, redacted unless the observer was told to keep values.
final
- queryName → String?
-
Caller-supplied label from
MssqlQueryOptions.queryName.final - queueWait → Duration?
-
Time the driver spent waiting for the connection's operation gate.
final
- relationLoadElapsed → Duration?
-
Time spent loading included relations. Null on a session observer.
final
- roundTrips → int?
-
Network round-trips this event represents.
final
- rows → int?
-
Rows read, for a read. Null for a write and for a buffered statement
that failed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sql → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited