/** * @return Queue **/ public function run(DB $db) { $db->queryRaw($this->toDialectString($db->getDialect())); return $this; }
protected function declareCursor() { $queryDeclare = 'DECLARE ' . $this->getCursorName() . ' CURSOR FOR ' . $this->getSelectQuery()->toDialectString($this->db->getDialect()); $this->db->queryRaw($queryDeclare); }