| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/php/Doctrine/DBAL/Portability/ |
Upload File : |
<?php
namespace Doctrine\DBAL\Portability;
use Doctrine\DBAL\Driver\Connection as ConnectionInterface;
use Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware;
use Doctrine\DBAL\Driver\Result as DriverResult;
use Doctrine\DBAL\Driver\Statement as DriverStatement;
/**
* Portability wrapper for a Connection.
*/
final class Connection extends AbstractConnectionMiddleware
{
public const PORTABILITY_ALL = 255;
public const PORTABILITY_NONE = 0;
public const PORTABILITY_RTRIM = 1;
public const PORTABILITY_EMPTY_TO_NULL = 4;
public const PORTABILITY_FIX_CASE = 8;
private Converter $converter;
public function __construct(ConnectionInterface $connection, Converter $converter)
{
parent::__construct($connection);
$this->converter = $converter;
}
public function prepare(string $sql): DriverStatement
{
return new Statement(
parent::prepare($sql),
$this->converter,
);
}
public function query(string $sql): DriverResult
{
return new Result(
parent::query($sql),
$this->converter,
);
}
}