Ejemplo n.º 1
0
 protected function get_columns($table)
 {
     $table = explode(' AS ', $table);
     $table = $table[0];
     $table_info = DBManager::table($table)->info();
     return array_map(function ($column) {
         return $column['name'];
     }, $table_info);
 }