The :replace-all transact form lets you completely replace all rows in a table with a new set.
It is the same as issuing [:delete table] [insert table row1, row2 ...] but can be more efficient.
(rel/transact db [[:replace-all :Customer customer1 customer2]])
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |