1 | <?php |
||
16 | final class SqliteGateway implements Gateway |
||
17 | { |
||
18 | /** |
||
19 | * Error code 7 for a fatal error - taken from an existing driver implementation. |
||
20 | */ |
||
21 | private const FATAL_ERROR_CODE = 7; |
||
22 | |||
23 | /** @var \Doctrine\DBAL\Connection */ |
||
24 | private $connection; |
||
25 | |||
26 | /** @var \Doctrine\DBAL\Platforms\AbstractPlatform */ |
||
27 | private $databasePlatform; |
||
28 | |||
29 | /** @var int[] */ |
||
30 | private $lastInsertedIds = []; |
||
31 | |||
32 | /** |
||
33 | * @throws \Doctrine\DBAL\DBALException |
||
34 | */ |
||
35 | public function __construct(Connection $connection) |
||
40 | |||
41 | public function getColumnNextIntegerValue( |
||
57 | |||
58 | /** |
||
59 | * @throws \eZ\Publish\Core\Base\Exceptions\DatabaseException if the sequence has no last value |
||
60 | */ |
||
61 | public function getLastInsertedId(string $sequenceName): int |
||
72 | } |
||
73 |