Esempio n. 1
0
 /**
  * 获取受影响的行数
  * @return int
  */
 function rowCount()
 {
     return $this->db->getAffectedRows();
 }
Esempio n. 2
0
 /**
  * 删除数据库中的此条记录
  * @return unknown_type
  */
 function delete()
 {
     $this->db->delete($this->_current_id, $this->table, $this->primary);
 }
Esempio n. 3
0
 /**
  * 删除数据库中的此条记录
  * @return bool
  */
 function delete()
 {
     if ($this->db->delete($this->_current_id, $this->table, $this->primary) === false) {
         return false;
     }
     $this->_delete = true;
     $this->notify();
     return true;
 }
Esempio n. 4
0
 protected function connect($config)
 {
     $db = new Swoole\Database($config);
     $db->connect();
     return $db;
 }
 /**
  * 删除当前条件下的记录
  * @return unknown_type
  */
 function delete()
 {
     return $this->db->query("delete from {$this->table} {$this->where} {$this->limit}");
 }