QueryExecuted class final

A query that ran (Laravel's QueryExecuted), passed to DatabaseManager.listen / DB.listen listeners: SQL with its bindings, duration and connection. For debugging, slow-query logging, N+1 detection and inspection tools.

Constructors

QueryExecuted({required String sql, required List<Object?> bindings, required Duration time, required String connectionName, Duration poolWait = Duration.zero})
A query that ran, as DB.listen reports it.
const

Properties

bindings → List<Object?>
The bound values.
final
connectionName → String
The connection it ran on.
final
hashCode → int
The hash code for this object.
no setterinherited
poolWait → Duration
Time spent waiting for a free connection. Zero inside a transaction, which holds its connection, and on SQLite. A high value with a low time means the pool is too small, not that the database is slow.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sql → String
The SQL, with placeholders.
final
time → Duration
Time in the database, without poolWait.
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