1 | <?php |
||
12 | class SQLite extends _Abstract { |
||
13 | /** |
||
14 | * @var \SQLite3 Instance of DB connection |
||
15 | */ |
||
16 | protected $instance; |
||
17 | /** |
||
18 | * @param string $database Ignored for SQLite |
||
19 | * @param string $user Ignored for SQLite |
||
20 | * @param string $password Ignored for SQLite |
||
21 | * @param string $host Path to database file, relatively to website root or absolute |
||
22 | * @param string $prefix |
||
23 | */ |
||
24 | 22 | public function __construct ($database, $user = '', $password = '', $host = '', $prefix = '') { |
|
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 22 | public function q ($query, ...$params) { |
|
48 | /** |
||
49 | * @inheritdoc |
||
50 | * |
||
51 | * @return false|SQLite3Result |
||
52 | */ |
||
53 | 22 | protected function q_internal ($query, $parameters = []) { |
|
66 | /** |
||
67 | * @inheritdoc |
||
68 | * |
||
69 | * @param false|SQLite3Result $query_result |
||
70 | */ |
||
71 | 21 | public function f ($query_result, $single_column = false, $array = false, $indexed = false) { |
|
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | 15 | public function id () { |
|
93 | /** |
||
94 | * @inheritdoc |
||
95 | */ |
||
96 | 1 | public function affected () { |
|
99 | /** |
||
100 | * @inheritdoc |
||
101 | * |
||
102 | * @param false|SQLite3Result $query_result |
||
103 | */ |
||
104 | 18 | public function free ($query_result) { |
|
110 | /** |
||
111 | * @inheritdoc |
||
112 | */ |
||
113 | 2 | public function columns ($table, $like = false) { |
|
144 | /** |
||
145 | * @inheritdoc |
||
146 | */ |
||
147 | 1 | public function tables ($like = false) { |
|
170 | /** |
||
171 | * @inheritdoc |
||
172 | */ |
||
173 | 22 | protected function s_internal ($string, $single_quotes_around) { |
|
177 | /** |
||
178 | * @inheritdoc |
||
179 | */ |
||
180 | 1 | public function server () { |
|
183 | /** |
||
184 | * @inheritdoc |
||
185 | */ |
||
186 | 2 | public function __destruct () { |
|
192 | } |
||
193 |