(init-conn config)
(init-conn client config)
Initializes and returns Datomic cloud connection.
config
is a map with the following keys:
:db-name
: the name of a database that will be created:schema
: the datomic schema in compact format. See
trident.util.datomic/datomic-schema
.:local-tx-fns?
: if true, transaction functions will be evaluated locally.
See trident.util.datomic/eval-tx-fns
:client-cfg
: if client
is omitted, this will be used to create one.Initializes and returns Datomic cloud connection. `config` is a map with the following keys: - `:db-name`: the name of a database that will be created - `:schema`: the datomic schema in compact format. See [[trident.util.datomic/datomic-schema]]. - `:local-tx-fns?`: if true, transaction functions will be evaluated locally. See [[trident.util.datomic/eval-tx-fns]] - `:client-cfg`: if `client` is omitted, this will be used to create one.
(pull-many db pull-expr eids)
(pull-many db pull-expr map-from-key eids)
Ordering is not preserved. If map-from-key
is provided, returns a map. See
trident.util/map-from
. nil keys are dissoc
-ed.
Ordering is not preserved. If `map-from-key` is provided, returns a map. See [[trident.util/map-from]]. nil keys are `dissoc`-ed.
(tx db m lookup)
Convert m to a Datomic transaction
Convert m to a Datomic transaction
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close