Db.deleteRow
Db.deleteRow($table, $whereMapOrSql) -> null
Description
Delete one row from a table, if it matches $whereMapOrSql
.
$whereMapOrSql
can be a Map of column-to-value constraints, or a SQL TypeString.
// Delete post #1234 Db.deleteRow('posts', { postId: 1234 }) // Runs query: // DELETE FROM posts WHERE postId = 1234 LIMIT 1