protected loadTables ( ) : array | ||
Результат | array |
protected function loadTables()
{
$tables = array();
$sql = "SELECT name FROM sqlite_master WHERE type IN ('table', 'view') AND name NOT LIKE 'sqlite_%' UNION ALL SELECT name FROM sqlite_temp_master WHERE type IN ('table', 'view') ORDER BY 1";
$this->query($sql);
while (($row = $this->fetch()) != false) {
$tables[] = $row['name'];
}
return $tables;
}