\Cake\Database\LogLoggedQuery

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.

Summary

Methods
Properties
Constants
__toString()
$query
$took
$params
$numRows
$error
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$query

$query : string

Query string that was executed

Type

string

$took

$took : integer

Number of milliseconds this query took to complete

Type

integer

$params

$params : array

Associative array with the params bound to the query string

Type

array

$numRows

$numRows : integer

Number of rows affected or returned by the query execution

Type

integer

$error

$error : \Exception|null

The exception that was thrown by the execution of this query

Type

\Exception|null

Methods

__toString()

__toString() : string

Returns the string representation of this logged query

Returns

string