public function searchPath($searchPath) { if (empty($searchPath)) { $query = $this->connection->query('SHOW search_path'); $searchPath = $query->fetchColumn(1); return explode(",", $searchPath); } try { $this->connection->exec("SET search_path TO {$searchPath}"); return true; } catch (PDOException $e) { return false; } }