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

        //Where statement is optional for delete query (which is weird)
        $whereStatement = $this->optional("\nWHERE", $this->compileWhere($whereTokens));

        return rtrim("DELETE FROM {$table} {$whereStatement}");
    }
public function compileDelete(string $table, array $whereTokens = []): string
    {
        $table = $this->quote($table, true);

        //Where statement is optional for delete query (which is weird)
        $whereStatement = $this->optional("\nWHERE", $this->compileWhere($whereTokens));

        return rtrim("DELETE FROM {$table} {$whereStatement}");
    }
public function compileDelete ( string $ table , array $ whereTokens = [ ] ) : string { $ table = $ this -> quote ( $ table , true ) ; //Where statement is optional for delete query (which is weird) $ whereStatement = $ this -> optional ( "\nWHERE" , $ this -> compileWhere ( $ whereTokens ) ) ; return rtrim ( "DELETE FROM {$table} {$whereStatement}" ) ; }
Create delete statement.

@param string $table
@param array  $whereTokens

@return string

@throws CompilerException
Create delete statement .