interface SQLLogger (View source)

Interface for SQL loggers.

Methods

void
startQuery(string $sql, array $params = [], array $types = [])

Logs a SQL statement somewhere.

void
stopQuery()

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

Details

void startQuery(string $sql, array $params = [], array $types = [])

Logs a SQL statement somewhere.

Parameters

string $sql The SQL to be executed.
array $params The SQL parameters.
array $types The SQL parameter types.

Return Value

void

void stopQuery()

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

Return Value

void