| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function dropDatabase() |
||
| 19 | { |
||
| 20 | $iterator = $this->getDbDataset()->getIterator(" |
||
| 21 | select |
||
| 22 | 'drop table ' || name || ';' as command |
||
| 23 | from sqlite_master |
||
| 24 | where type = 'table' |
||
| 25 | and name <> 'sqlite_sequence'; |
||
| 26 | "); |
||
| 27 | |||
| 28 | foreach ($iterator as $row) { |
||
|
|
|||
| 29 | $this->getDbDataset()->execSQL($row->getField('command')); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 53 |