示例#1
0
 /**
  * @return int|string
  */
 public function getLastInsertId()
 {
     if (!$this->cursor) {
         return self::DEFAULT_LAST_INSERT_ID;
     }
     return $this->cursor->getInsertId();
 }
示例#2
0
 /**
  *
  */
 private function initialize()
 {
     $rows = [];
     while (($row = $this->executorCursor->next()) !== false) {
         $rows[] = $row;
     }
     $this->data = new Data($rows);
 }