EchoSQLLogger
in package
implements
SQLLogger
A SQL logger that logs to the standard output using echo/var_dump.
Tags
Interfaces, Classes and Traits
- SQLLogger
- Interface for SQL loggers.
Table of Contents
- startQuery() : void
- Logs a SQL statement somewhere.
- stopQuery() : void
- Marks the last started query as stopped. This can be used for timing of queries.
Methods
startQuery()
Logs a SQL statement somewhere.
public
startQuery(mixed $sql[, array<string|int, mixed> $params = null ][, array<string|int, mixed> $types = null ]) : void
Parameters
- $sql : mixed
-
The SQL to be executed.
- $params : array<string|int, mixed> = null
-
The SQL parameters.
- $types : array<string|int, mixed> = null
-
The SQL parameter types.
Return values
void —stopQuery()
Marks the last started query as stopped. This can be used for timing of queries.
public
stopQuery() : void