Documentation

SQLLogger

Interface for SQL loggers.

Tags
deprecated

Use Middleware or implement Middleware instead.

Table of Contents

Methods

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<int, mixed>|array<string, mixed>|null $params = null ][, array<int, Type|int|string|null>|array<string, Type|int|string|null>|null $types = null ]) : void
Parameters
$sql : string

SQL statement

$params : array<int, mixed>|array<string, mixed>|null = null

Statement parameters

$types : array<int, Type|int|string|null>|array<string, Type|int|string|null>|null = null

Parameter types

stopQuery()

Marks the last started query as stopped. This can be used for timing of queries.

public stopQuery() : void

        
On this page

Search results