DebugStack
class DebugStack implements SQLLogger (View source)
Includes executed SQLs in a Debug Stack.
Properties
array | $queries | Executed SQL queries. | |
boolean | $enabled | If Debug Stack is enabled (log queries) or not. | |
float|null | $start | ||
integer | $currentQuery |
Methods
void
startQuery(string $sql, array $params = null, array $types = null)
Logs a SQL statement somewhere.
void
stopQuery()
Marks the last started query as stopped. This can be used for timing of queries.