static function columns($table, $connection = 'default') { foreach (Sqlite::query("pragma table_info({$table});") as $c) { $columns[] = $c['name']; } return @$columns ?: array(); }