Contains a query string, the params used to executed it, time taken to do it and the number of rows found or affected by its execution.
Cake\Database\DriverInterface|null
Driver executing the query
Exception|null
The exception that was thrown by the execution of this query
int
Number of rows affected or returned by the query execution
array
Associative array with the params bound to the query string
string
Query string that was executed
float
Number of milliseconds this query took to complete
Returns the string representation of this logged query
Get the logging context data for a query.
Helper function used to replace query placeholders by the real params used to execute the query
Returns data that will be serialized as JSON
__toString(): string
Returns the string representation of this logged query
string
getContext(): array<string, mixed>
Get the logging context data for a query.
array<string, mixed>
interpolate(): string
Helper function used to replace query placeholders by the real params used to execute the query
string
jsonSerialize(): array<string, mixed>
Returns data that will be serialized as JSON
array<string, mixed>
Driver executing the query
Cake\Database\DriverInterface|null
The exception that was thrown by the execution of this query
Exception|null
Number of rows affected or returned by the query execution
int
Associative array with the params bound to the query string
array
Query string that was executed
string
Number of milliseconds this query took to complete
float
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Database.Log.LoggedQuery.html