Documentation

LoggerChain
in package
implements SQLLogger

Chains multiple SQLLogger.

Tags
deprecated

Table of Contents

Interfaces

SQLLogger
Interface for SQL loggers.

Properties

$loggers  : iterable<string|int, SQLLogger>

Methods

__construct()  : mixed
startQuery()  : void
Logs a SQL statement somewhere.
stopQuery()  : void
Marks the last started query as stopped. This can be used for timing of queries.

Properties

Methods

__construct()

public __construct([iterable<string|int, SQLLogger$loggers = [] ]) : mixed
Parameters
$loggers : iterable<string|int, SQLLogger> = []

startQuery()

Logs a SQL statement somewhere.

public startQuery(mixed $sql[, array<string|int, mixed>|null $params = null ][, array<string|int, mixed>|null $types = null ]) : void
Parameters
$sql : mixed

SQL statement

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

Statement parameters

$types : array<string|int, mixed>|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