An alternate Datomic Cloud client implementation.
An alternate Datomic Cloud client implementation.
(connect client {:keys [local-tx-fns?] :as config})
Returns a Datomic Cloud connection, optionally evaluating tx fns locally.
See trident.util.datomic/eval-tx-fns
. This can be useful for development
but shouldn't be used in production. If local-tx-fns?
is true, all
transactions must go through this connection; otherwise, transaction functions
might be evaluated with an out-of-date db.
There is a small edge case where the very first transaction ran through this connection might get an old database. This could be eliminated by running an empty transaction right after connecting.
Returns a Datomic Cloud connection, optionally evaluating tx fns locally. See [[trident.util.datomic/eval-tx-fns]]. This can be useful for development but shouldn't be used in production. If `local-tx-fns?` is true, all transactions must go through this connection; otherwise, transaction functions might be evaluated with an out-of-date db. There is a small edge case where the very first transaction ran through this connection might get an old database. This could be eliminated by running an empty transaction right after connecting.
(with-db-sync conn t)
Like with-db
, but returns a db with at least time t
Like `with-db`, but returns a db with at least time `t`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close