class DebugPDO extends PDO (View source)

PDO subclass that records executed queries for debug display.

Only instantiated when database.debug is enabled. All consumers type-hint PDO; the footer uses method_exists() to access getQueries().

Methods

PDOStatement|false
query(string $query, int|null $fetchMode = null, mixed ...$fetchModeArgs)

No description

PDOStatement|false
prepare(string $query, array $options = [])

No description

int|false
exec(string $statement)

No description

array
getQueries()

No description

Details

PDOStatement|false query(string $query, int|null $fetchMode = null, mixed ...$fetchModeArgs)

No description

Parameters

string $query
int|null $fetchMode
mixed ...$fetchModeArgs

Return Value

PDOStatement|false

PDOStatement|false prepare(string $query, array $options = [])

No description

Parameters

string $query
array $options

Return Value

PDOStatement|false

int|false exec(string $statement)

No description

Parameters

string $statement

Return Value

int|false

array getQueries()

No description

Return Value

array