interface SQLLogger (View source)

Interface for SQL loggers.

Methods

void
startQuery($sql, array $params = null, array $types = null)

Logs a SQL statement somewhere.

void
stopQuery()

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

Details

void startQuery($sql, array $params = null, array $types = null)

Logs a SQL statement somewhere.

Parameters

$sql
array $params
array $types

Return Value

void

void stopQuery()

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

Return Value

void