src/WorkerF/DB/Drivers/PDODriver.php
public function update(array $data)
    {
        // should not update without where
        if (empty($this->_where_str)) {
            throw new \InvalidArgumentException("Need where condition");
        }
        // create build str
        $this->_update_str = ' SET ';
        foreach ($data as $key => $value) {
            $plh = self::_getPlh();
            $this->_bind_params[$plh] = $value;
            $this->_update_str .= ' '.self::_wrapRow($key).' = '.$plh.',';
        }

        $this->_update_str = rtrim($this->_update_str, ',');

        $this->_buildUpdate();
        $this->_execute();

        return $this->_pdoSt->rowCount();
    }
public function update(array $data)
    {
        // should not update without where
        if (empty($this->_where_str)) {
            throw new \InvalidArgumentException("Need where condition");
        }
        // create build str
        $this->_update_str = ' SET ';
        foreach ($data as $key => $value) {
            $plh = self::_getPlh();
            $this->_bind_params[$plh] = $value;
            $this->_update_str .= ' '.self::_wrapRow($key).' = '.$plh.',';
        }

        $this->_update_str = rtrim($this->_update_str, ',');

        $this->_buildUpdate();
        $this->_execute();

        return $this->_pdoSt->rowCount();
    }
update data

@param  array $data
@return  int
@throws  \PDOException