use FaaPz\PDO\Database;
use FaaPz\PDO\Statement\Delete;
$database = new Database('mysql:host=localhost;dbname=test_db;charset=UTF8');
// DELETE FROM users
$delete = new Delete($database, 'users');
if (($result = $delete->execute()) !== false) {
$affectedRows = $result->rowCount();
}
The table to delete from.
use FaaPz\PDO\Database;
use FaaPz\PDO\Statement\Delete;
$database = new Database('mysql:host=localhost;dbname=test_db;charset=UTF8');
// DELETE FROM users
$database->delete()
->from('users');