src/Driver/Compiler.php
public function compileUpdate(string $table, array $updates, array $whereTokens = []): string
    {
        $table = $this->quote($table, true);

        //Preparing update column statement
        $updates = $this->prepareUpdates($updates);

        //Where statement is optional for update queries
        $whereStatement = $this->optional("\nWHERE", $this->compileWhere($whereTokens));

        return rtrim("UPDATE {$table}\nSET {$updates} {$whereStatement}");
    }
public function compileUpdate(string $table, array $updates, array $whereTokens = []): string
    {
        $table = $this->quote($table, true);

        //Preparing update column statement
        $updates = $this->prepareUpdates($updates);

        //Where statement is optional for update queries
        $whereStatement = $this->optional("\nWHERE", $this->compileWhere($whereTokens));

        return rtrim("UPDATE {$table}\nSET {$updates} {$whereStatement}");
    }
public function compileUpdate ( string $ table , array $ updates , array $ whereTokens = [ ] ) : string { $ table = $ this -> quote ( $ table , true ) ; //Preparing update column statement $ updates = $ this -> prepareUpdates ( $ updates ) ; //Where statement is optional for update queries $ whereStatement = $ this -> optional ( "\nWHERE" , $ this -> compileWhere ( $ whereTokens ) ) ; return rtrim ( "UPDATE {$table}\nSET {$updates} {$whereStatement}" ) ; }
Create update statement.

@param string $table
@param array  $updates
@param array  $whereTokens

@return string

@throws CompilerException
Create update statement .