(fake-conn)
Returns a fake connection object that is suitable for use with the memorydb if no other conn is available.
Returns a fake connection object that is suitable for use with the memorydb if no other conn is available.
(new-db conn ledger)
(new-db conn ledger bootstrap-opts)
Creates a local, in-memory but bootstrapped db (primarily for testing).
Creates a local, in-memory but bootstrapped db (primarily for testing).
(transact-flakes db flakes)
Transacts a series of preformatted flakes into the in-memory db.
Transacts a series of preformatted flakes into the in-memory db.
(transact-tuples db tuples)
Transacts tuples which includes s, p, o and optionally op. If op is not explicitly false, it is assumed to be true.
Does zero validation that tuples are accurate
Transacts tuples which includes s, p, o and optionally op. If op is not explicitly false, it is assumed to be true. Does zero validation that tuples are accurate
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close