:insert
The :insert
transact form is how you add rows to tables.
Like other transact forms, it can throw exceptions if constraints are violated.
(def db {})
(rel/transact db [:insert :Food {:name "pizza"}, {:name "pie"}])
;; =>
{:Food #{{:name "pizza"}, {:name "pie"}}}
See also terser insert, :insert-or-replace
, :insert-or-merge
,
:insert-or-update
.