Liking cljdoc? Tell your friends :D

: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.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close