lib/QueryBuilder/Delete.php
public function buildQuery(string $table, array $where): SqlParams
    {
        $whereClause = $this->buildWhereClause($where);
        $sql = "DELETE FROM {$table}" . $whereClause->getSql();
        return new SqlParams($sql, $whereClause->getParams());
    }
public function buildQuery(string $table, array $where): SqlParams
    {
        $whereClause = $this->buildWhereClause($where);
        $sql = "DELETE FROM {$table}" . $whereClause->getSql();
        return new SqlParams($sql, $whereClause->getParams());
    }
public function buildQuery ( string $ table , array $ where ) : SqlParams { $ whereClause = $ this -> buildWhereClause ( $ where ) ; $ sql = "DELETE FROM {$table}" . $ whereClause -> getSql ( ) ; return new SqlParams ( $ sql , $ whereClause -> getParams ( ) ) ; }
Generates a delete query with where clause for the specified table.
Generates a delete query with where clause for the specified table .