Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

Db.deleteRows

Db.deleteRows($table, $whereSql)

Description

Delete 1 or more rows from a table, if they exist.

// Delete post #123
$where = sql'id = {}'.fill(123);
Db.deleteRow('posts', $where);

// Runs this query:
// DELETE FROM posts WHERE id = 123