示例#1
0
 /**
  * @return Queue
  **/
 public function run(DB $db)
 {
     $db->queryRaw($this->toDialectString($db->getDialect()));
     return $this;
 }
示例#2
0
文件: Cursor.php 项目: avid/hesper
 protected function declareCursor()
 {
     $queryDeclare = 'DECLARE ' . $this->getCursorName() . ' CURSOR FOR ' . $this->getSelectQuery()->toDialectString($this->db->getDialect());
     $this->db->queryRaw($queryDeclare);
 }