public function getColumns($connection, $table) { $result = $this->getDB($connection)->select("show columns from `{$table}`"); return array_pluck($result, 'Field'); }