/** * @param Query $query * @return Reactor */ public function execQuery(Query $query) { try { $link = $this->controller->getLink($this->driver, $query); if ($link) { $this->driver->query($link, $query->getExpression()); $this->active->attach($link, $query); } } catch (\Exception $err) { $query->reject($err); } return $this; }