(conn)Returns the Datomic connection that was setup in 'conn-fixture'.
Returns the Datomic connection that was setup in 'conn-fixture'.
(conn-fixture)(conn-fixture txn-fn)Fixture function to acquire a Datomic connection for all tests in a namespace.
Fixture function to acquire a Datomic connection for all tests in a namespace.
(transaction & tx-data)A fixture that transacts tx-data into the database.
A fixture that transacts `tx-data` into the database.
(with-conn symbol & body)Acquires a datomic connection and binds it locally to symbol while executing body. Ensures resource is released after body completes. If called in a dynamic context in which resource is already bound, reuses the existing resource and does not release it.
Acquires a datomic connection and binds it locally to symbol while executing body. Ensures resource is released after body completes. If called in a dynamic context in which *resource* is already bound, reuses the existing resource and does not release it.
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 |