/** * Prepare the database connection instance. * * @param \KageNoNeko\OSM\ConnectionInterface $connection * * @return \KageNoNeko\OSM\ConnectionInterface */ protected function prepare(ConnectionInterface $connection) { if ($this->app->bound('events')) { $connection->setEventDispatcher($this->app['events']); } return $connection; }
protected function runQuery() { return $this->connection->runQuery($this->toQl()); }