Documentation

SQLLogger

Interface for SQL loggers.

Tags
link
www.doctrine-project.org
since
2.0
author

Benjamin Eberlei kontakt@beberlei.de

author

Guilherme Blanco guilhermeblanco@hotmail.com

author

Jonathan Wage jonwage@gmail.com

author

Roman Borschel roman@code-factory.org

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
Return values
void

Search results