SQLLogger
in
Interface for SQL loggers.
Tags
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(string $sql[, array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $types = null ]) : void
Parameters
- $sql : string
-
The SQL to be executed.
- $params : array<string|int, mixed>|null = null
-
The SQL parameters.
- $types : array<string|int, mixed>|null = 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