Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class SQLite |
||
8 | { |
||
9 | public function __construct(protected $table){} |
||
10 | |||
11 | public function up(): void |
||
21 | } |
||
22 | |||
23 | public function isTable() |
||
24 | { |
||
25 | $query = Rudra::get("DSN")->query(" |
||
26 | SELECT name FROM sqlite_master WHERE type='table' AND name='{$this->table}'; |
||
27 | "); |
||
28 | |||
29 | return $query->fetchColumn(); |
||
30 | } |
||
31 | |||
32 | public function writeLog(string $name): void |
||
40 | } |
||
41 | } |
||
42 |