Liking cljdoc? Tell your friends :D

toolbelt.datomic.test


*conn*clj

source

acquire-connclj

(acquire-conn)
source

attrclj

(attr conn attr)

Retrieve attr from db.

Retrieve attr from db.
sourceraw docstring

cardinalityclj

(cardinality attr card)
source

componentclj

Is attr a component attribute?

Is `attr` a component attribute?
sourceraw docstring

connclj

(conn)

Returns the Datomic connection that was setup in 'conn-fixture'.

Returns the Datomic connection that was setup in 'conn-fixture'.
sourceraw docstring

conn-fixtureclj

(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.
sourceraw docstring

createdclj

source

enum-presentcljmacro

(enum-present attr)
source

fulltextclj

Is attr fulltext indexed?

Is `attr` fulltext indexed?
sourceraw docstring

indexedclj

Is attr indexed?

Is `attr` indexed?
sourceraw docstring

release-connclj

(release-conn conn)
source

speculateclj

(speculate db tx-data)
source

test-attrcljmacro

(test-attr symbol attr & exprs)
source

transactionclj

(transaction & tx-data)

A fixture that transacts tx-data into the database.

A fixture that transacts `tx-data` into the database.
sourceraw docstring

unique-identityclj

(unique-identity attr)
source

value-typeclj

(value-type attr type)
source

with-conncljmacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close