<?php namespace Doctrine\DBAL\Logging; use Doctrine\DBAL\Types\Type; /** * Interface for SQL loggers. * * @deprecated Use {@see \Doctrine\DBAL\Logging\Middleware} or implement * {@see \Doctrine\DBAL\Driver\Middleware} instead. */ interface SQLLogger { /** * Logs a SQL statement somewhere. * * @param string $sql SQL statement * @param list<mixed>|array<string, mixed>|null $params Statement parameters * @param array<int, Type|int|string|null>|array<string, Type|int|string|null>|null $types Parameter types * * @return void */ public function startQuery($sql, ?array $params = null, ?array $types = null); /** * Marks the last started query as stopped. This can be used for timing of queries. * * @return void */ public function stopQuery(); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Connection.php | File | 1.78 KB | 0644 |
|
DebugStack.php | File | 1.41 KB | 0644 |
|
Driver.php | File | 1.33 KB | 0644 |
|
LoggerChain.php | File | 984 B | 0644 |
|
Middleware.php | File | 531 B | 0644 |
|
SQLLogger.php | File | 949 B | 0644 |
|
Statement.php | File | 2.9 KB | 0644 |
|