mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
30 lines
810 B
PHP
30 lines
810 B
PHP
|
<?php
|
||
|
|
||
|
namespace Doctrine\DBAL\Logging;
|
||
|
|
||
|
use Doctrine\DBAL\Types\Type;
|
||
|
|
||
|
/**
|
||
|
* Interface for SQL loggers.
|
||
|
*/
|
||
|
interface SQLLogger
|
||
|
{
|
||
|
/**
|
||
|
* Logs a SQL statement somewhere.
|
||
|
*
|
||
|
* @param string $sql SQL statement
|
||
|
* @param array<int, 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();
|
||
|
}
|