Property | Type | Description | |
---|---|---|---|
$_queries | |||
$_queryCount | |||
$_queryLimit |
Method | Description | |
---|---|---|
addQuery ( $adapter, mixed $query, mixed $data = null ) | Add query to log | |
lastQuery ( ) : array | Get last query run from log | |
queries ( ) : array | Get full query log | |
queryCount ( ) : integer | Get a count of how many queries have been run | |
queryLimit ( $limit = null ) : integer | Get/set query limit A limit should be set by default to prevent query log from consuming and exhausing available memory |
public static queryCount ( ) : integer | ||
return | integer | Total number of queries that have been run |
public static queryLimit ( $limit = null ) : integer | ||
return | integer | Query limit |