Skip to content

:replace-all

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]])