Version: v0.5.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
let where = sql'id = {}'.fill(123);
Db.deleteRow('posts', where);

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