Documentation

BacktraceLogger extends DebugStack
in package

FinalYes

Includes executed SQLs in a Debug Stack.

Table of Contents

Properties

$currentQuery  : int
$enabled  : bool
If Debug Stack is enabled (log queries) or not.
$queries  : array<int, array<string, mixed>>
Executed SQL queries.
$start  : float|null

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

$enabled

If Debug Stack is enabled (log queries) or not.

public bool $enabled = true

$queries

Executed SQL queries.

public array<int, array<string, mixed>> $queries = []

Methods

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