/** * Get a generator for the given query. * * @return \Generator */ public function cursor() { if (is_null($this->columns)) { $this->columns = ['*']; } return $this->connection->cursor($this->toSql(), $this->getBindings(), !$this->useWritePdo); }