blob: 74a2b12b4b87823ffc33b4462faa04a36a6895da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?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();
}
}
|