1 | <?php |
||
9 | class SQLite extends _Abstract { |
||
10 | /** |
||
11 | * @var \SQLite3 Instance of DB connection |
||
12 | */ |
||
13 | protected $instance; |
||
14 | /** |
||
15 | * @param string $database Ignored for SQLite |
||
16 | * @param string $user Ignored for SQLite |
||
17 | * @param string $password Ignored for SQLite |
||
18 | * @param string $host Path to database file, relatively to website root or absolute |
||
19 | * @param string $prefix |
||
20 | */ |
||
21 | function __construct ($database, $user = '', $password = '', $host = '', $prefix = '') { |
||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | function q ($query, $params = [], ...$param) { |
||
41 | /** |
||
42 | * @inheritdoc |
||
43 | * |
||
44 | * @return bool|\SQLite3Result |
||
45 | */ |
||
46 | protected function q_internal ($query) { |
||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | protected function q_multi_internal ($query) { |
||
62 | /** |
||
63 | * @inheritdoc |
||
64 | * |
||
65 | * @param false|\SQLite3Result $query_result |
||
66 | */ |
||
67 | function f ($query_result, $single_column = false, $array = false, $indexed = false) { |
||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | function id () { |
||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | function affected () { |
||
95 | /** |
||
96 | * @inheritdoc |
||
97 | * |
||
98 | * @param false|\SQLite3Result $query_result |
||
99 | */ |
||
100 | function free ($query_result) { |
||
106 | /** |
||
107 | * @inheritdoc |
||
108 | */ |
||
109 | function columns ($table, $like = false) { |
||
140 | /** |
||
141 | * @inheritdoc |
||
142 | */ |
||
143 | function tables ($like = false) { |
||
166 | /** |
||
167 | * @inheritdoc |
||
168 | */ |
||
169 | protected function s_internal ($string, $single_quotes_around) { |
||
173 | /** |
||
174 | * @inheritdoc |
||
175 | */ |
||
176 | function server () { |
||
179 | /** |
||
180 | * @inheritdoc |
||
181 | */ |
||
182 | function __destruct () { |
||
188 | } |
||
189 |