if (isset($this->tables)) return $this->tables;
$this->tables = array();
-#debug((array)$this->conn->query("SELECT name,type FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%' ORDER BY name",PDO::FETCH_ASSOC));
-#debug($this->type('tables',true,$this->type));
foreach ($this->conn->query($this->type('tables',true,$this->type),PDO::FETCH_ASSOC) as $row) {
$name = current($row);
$this->tables[$name] = $this->table($name,$row);
-#bye($this->tables);
}
-#bye($this->tables);
- #return array_values($this->tables);
return $this->tables;
}