DebugStatement
extends PDOStatement
in package
PDOStatement that reports each execution's wall time to Debug. Installed through `PDO::ATTR_STATEMENT_CLASS` when DEBUG is on (see Database), so every query is timed without touching any call site.
Table of Contents
Methods
- execute() : bool
- Execute the statement, timing it (see `PDOStatement::execute`).
- __construct() : mixed
Methods
execute()
Execute the statement, timing it (see `PDOStatement::execute`).
public
execute([array<int|string, mixed>|null $params = null ]) : bool
Parameters
- $params : array<int|string, mixed>|null = null
-
Bind values, or null when the values were bound beforehand.
Return values
bool —Whether the execution succeeded.
__construct()
protected
__construct() : mixed