(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 is a website building & hosting documentation for Clojure/Script libraries
× close