lib/PeachySql.php
public function deleteFrom(string $table, array $where): int
    {
        $delete = new Delete($this->options);
        $sqlParams = $delete->buildQuery($table, $where);
        return $this->query($sqlParams->getSql(), $sqlParams->getParams())->getAffected();
    }
public function deleteFrom(string $table, array $where): int
    {
        $delete = new Delete($this->options);
        $sqlParams = $delete->buildQuery($table, $where);
        return $this->query($sqlParams->getSql(), $sqlParams->getParams())->getAffected();
    }
public function deleteFrom ( string $ table , array $ where ) : int { $ delete = new Delete ( $ this -> options ) ; $ sqlParams = $ delete -> buildQuery ( $ table , $ where ) ; return $ this -> query ( $ sqlParams -> getSql ( ) , $ sqlParams -> getParams ( ) ) -> getAffected ( ) ; }
Deletes rows from the table matching the where clause
Returns the number of affected rows
Deletes rows from the table matching the where clause Returns the number of affected rows