Liking cljdoc? Tell your friends :D

datahike.db.transaction


advance-max-eid

(advance-max-eid db eid)

apply-db-op

(apply-db-op db report op-vec)

assert-preds

(assert-preds db [_ e _ preds])

builtin-op?


check-schema-update

(check-schema-update db entity new-eid)

check-tuple

(check-tuple db op-vec)

compare-and-swap

(compare-and-swap db report op-vec)

entity-map->op-vec

(entity-map->op-vec db report entity)

flush-tuples

(flush-tuples report)

Generates all the add or retract operations needed for updating the states of composite tuples. E.g., if '::queued-tuples' contains {100 {:a+b+c [123 nil nil]}}, this function creates this vector [:db/add 100 :a+b+c [123 nil nil]]

Generates all the add or retract operations needed for updating the states of composite tuples.
E.g., if '::queued-tuples' contains {100 {:a+b+c [123 nil nil]}}, this function creates this vector [:db/add 100 :a+b+c [123 nil nil]]
raw docstring

flush-tx-meta

(flush-tx-meta {:keys [tx-meta db-before], :as report})

Generates add-operations for transaction meta data.

Generates add-operations for transaction meta data.
raw docstring

next-eid

(next-eid db)

remove-schema

(remove-schema db datom)

retract-entity

(retract-entity db report op-vec)

transact-entities-directly

(transact-entities-directly initial-report initial-es)

transact-tx-data

(transact-tx-data {:keys [db-before], :as initial-report} initial-es)

update-rschema

(update-rschema db)

update-schema

(update-schema db datom)

validate-datom

(validate-datom db datom)

validate-datom-upsert

(validate-datom-upsert db datom)

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

× close