28 lines
730 B
PHP
28 lines
730 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\DBAL\Driver;
|
|
|
|
use Doctrine\DBAL\Driver;
|
|
use Doctrine\DBAL\Driver\API\ExceptionConverter as ExceptionConverterInterface;
|
|
use Doctrine\DBAL\Driver\API\IBMDB2\ExceptionConverter;
|
|
use Doctrine\DBAL\Platforms\DB2Platform;
|
|
use Doctrine\DBAL\ServerVersionProvider;
|
|
|
|
/**
|
|
* Abstract base implementation of the {@see Driver} interface for IBM DB2 based drivers.
|
|
*/
|
|
abstract class AbstractDB2Driver implements Driver
|
|
{
|
|
public function getDatabasePlatform(ServerVersionProvider $versionProvider): DB2Platform
|
|
{
|
|
return new DB2Platform();
|
|
}
|
|
|
|
public function getExceptionConverter(): ExceptionConverterInterface
|
|
{
|
|
return new ExceptionConverter();
|
|
}
|
|
}
|