lib/PeachySql.php
public function updateRows(string $table, array $set, array $where): int
    {
        $update = new Update($this->options);
        $sqlParams = $update->buildQuery($table, $set, $where);
        return $this->query($sqlParams->getSql(), $sqlParams->getParams())->getAffected();
    }
public function updateRows(string $table, array $set, array $where): int
    {
        $update = new Update($this->options);
        $sqlParams = $update->buildQuery($table, $set, $where);
        return $this->query($sqlParams->getSql(), $sqlParams->getParams())->getAffected();
    }
public function updateRows ( string $ table , array $ set , array $ where ) : int { $ update = new Update ( $ this -> options ) ; $ sqlParams = $ update -> buildQuery ( $ table , $ set , $ where ) ; return $ this -> query ( $ sqlParams -> getSql ( ) , $ sqlParams -> getParams ( ) ) -> getAffected ( ) ; }
Updates the specified columns and values in rows matching the where clause
Returns the number of affected rows
Updates the specified columns and values in rows matching the where clause Returns the number of affected rows