THT is in early Beta. We welcome contributors & feedback.

Db.deleteRows

Db.deleteRows(table, lockWhereSql)

Description

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

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

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