1 | <?php |
||
17 | class Sqlite3 extends AdapterAbstract implements AdapterInterface, AdapterFactoryInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var \SQLite3 |
||
21 | */ |
||
22 | protected $connection; |
||
23 | |||
24 | /** |
||
25 | * Sqlite3 constructor. |
||
26 | * |
||
27 | * @inheritdoc |
||
28 | * |
||
29 | * @throws ParserConditionNotSatisfiedException |
||
30 | */ |
||
31 | public function __construct(string $fileName) |
||
39 | |||
40 | /** |
||
41 | * @return bool |
||
42 | */ |
||
43 | protected function checkConditions() : bool |
||
47 | |||
48 | /** |
||
49 | * @return \SQLite3 |
||
50 | * @throws ParserConfigurationException |
||
51 | */ |
||
52 | protected function getConnection() : \SQLite3 |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | * |
||
70 | * @throws ParserConfigurationException |
||
71 | * @throws ParserRuntimeException |
||
72 | */ |
||
73 | public function beginTransaction() : bool |
||
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | * |
||
87 | * @throws ParserConfigurationException |
||
88 | * @throws ParserRuntimeException |
||
89 | */ |
||
90 | public function commitTransaction() : bool |
||
100 | |||
101 | /** |
||
102 | * @inheritdoc |
||
103 | * |
||
104 | * @throws ParserConfigurationException |
||
105 | * @throws ParserRuntimeException |
||
106 | */ |
||
107 | public function query(string $statement) : array |
||
122 | |||
123 | /** |
||
124 | * @inheritdoc |
||
125 | * |
||
126 | * @throws ParserConfigurationException |
||
127 | * @throws ParserRuntimeException |
||
128 | */ |
||
129 | public function prepare(string $statement) : PreparedStatementInterface |
||
139 | |||
140 | /** |
||
141 | * @inheritdoc |
||
142 | * |
||
143 | * @throws ParserConfigurationException |
||
144 | * @throws ParserRuntimeException |
||
145 | */ |
||
146 | public function exec(string $statement) : bool |
||
156 | |||
157 | public function __destruct() |
||
161 | } |
||
162 |