Liking cljdoc? Tell your friends :D

:delete

The :delete transaction form allow you delete rows by predicate expressions.

In the below example, we delete rows for all people called Tom.

(rel/transact db [:delete :Person [= :name "Tom"]])

You can supply multiple predicates

(rel/transact db [:delete :Event [= :type "insert"] [< :ts 1640251544389]])

Like other transaction forms you can only modify tables, all derived state is maintained by relic.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close