28 lines
741 B
PHP
28 lines
741 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\SQLite\ExceptionConverter;
|
|
use Doctrine\DBAL\Platforms\SQLitePlatform;
|
|
use Doctrine\DBAL\ServerVersionProvider;
|
|
|
|
/**
|
|
* Abstract base implementation of the {@see Driver} interface for SQLite based drivers.
|
|
*/
|
|
abstract class AbstractSQLiteDriver implements Driver
|
|
{
|
|
public function getDatabasePlatform(ServerVersionProvider $versionProvider): SQLitePlatform
|
|
{
|
|
return new SQLitePlatform();
|
|
}
|
|
|
|
public function getExceptionConverter(): ExceptionConverterInterface
|
|
{
|
|
return new ExceptionConverter();
|
|
}
|
|
}
|