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
.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close