QueryExecuted
class QueryExecuted
Properties
| string | $sql | The SQL query that was executed. |
|
| array | $bindings | The array of query bindings. |
|
| float|null | $time | The number of milliseconds it took to execute the query. |
|
| Connection | $connection | The database connection instance. |
|
| string | $connectionName | The database connection name. |
|
| null|"read"|"write" | $readWriteType | The PDO read / write type for the executed query. |
Methods
__construct(string $sql, array $bindings, float|null $time, Connection $connection, string|null $readWriteType = null)
Create a new event instance.
string
toRawSql()
Get the raw SQL representation of the query with embedded bindings.
Details
at line 48
__construct(string $sql, array $bindings, float|null $time, Connection $connection, string|null $readWriteType = null)
Create a new event instance.
at line 66
string
toRawSql()
Get the raw SQL representation of the query with embedded bindings.