add erase-from helper #532

Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
Sean Corfield 2024-11-22 23:17:16 -08:00
parent 129239a742
commit 09fa8afefe
No known key found for this signature in database

View file

@ -592,6 +592,15 @@
[& args]
(generic :delete-from args))
(defn erase-from
"For erasing (hard delete) from a single table (XTDB).
Accepts a single table name to erase from.
(-> (erase-from :films) (where [:= :id 1]))"
{:arglists '([table])}
[& args]
(generic :erase-from args))
(defn truncate
"Accepts a single table name to truncate."
{:arglists '([table])}