public function update($table, array $fields, $where, $options = null)
    {
        $query = new Update(
            $this,
            $table,
            $fields,
            new Where($where),
            new Options($options)
        );
        return $query->execute();
    }
public function update($table, array $fields, $where, $options = null)
    {
        $query = new Update(
            $this,
            $table,
            $fields,
            new Where($where),
            new Options($options)
        );
        return $query->execute();
    }
public function update ( $ table , array $ fields , $ where , $ options = null ) { $ query = new Update ( $ this , $ table , $ fields , new Where ( $ where ) , new Options ( $ options ) ) ; return $ query -> execute ( ) ; }
Update one or more rows in the database.

@param string $table The table to update.
@param array $fields Array Field => value pairs to update.
@param array $where Array of where statements to limit updates.
@return integer The number of affected (updated) rows.
@throws Dabble\Query\UpdateException if no rows were updated.
@throws Dabble\Query\SqlException on error.
Update one or more rows in the database .