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|nullDriver executing the query
Exception|nullThe exception that was thrown by the execution of this query
intNumber of rows affected or returned by the query execution
arrayAssociative array with the params bound to the query string
stringQuery string that was executed
floatNumber 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
stringgetContext(): 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
stringjsonSerialize(): array<string, mixed>
Returns data that will be serialized as JSON
array<string, mixed>Driver executing the query
Cake\Database\DriverInterface|nullThe exception that was thrown by the execution of this query
Exception|nullNumber of rows affected or returned by the query execution
intAssociative array with the params bound to the query string
arrayQuery string that was executed
stringNumber 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