/** * 获取受影响的行数 * @return int */ function rowCount() { return $this->db->getAffectedRows(); }
/** * 删除数据库中的此条记录 * @return unknown_type */ function delete() { $this->db->delete($this->_current_id, $this->table, $this->primary); }
/** * 删除数据库中的此条记录 * @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; }
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}"); }