Liking cljdoc? Tell your friends :D

thosmos.datomic


entityclj

(entity db id)

es->retract-txdclj

(es->retract-txd es)

find-all-eclj

(find-all-e db e)

find-entitiesclj

(find-entities db attr)
(find-entities db attr value)
(find-entities db attr value pattern)

find all entities with a given attribute and optional value and pattern

find all entities with a given attribute and optional value and pattern
raw docstring

get-valueclj

(get-value db id attr)

find one value of one attribute given a dbid

find one value of one attribute given a dbid
raw docstring

load-ednclj

(load-edn path)

load-resourceclj

(load-resource path)

pull-entityclj

(pull-entity db attr val)
(pull-entity db attr val pattern)

find one entity with a given attribute and value and optional pattern

find one entity with a given attribute and value and optional pattern
raw docstring

readersclj


retract-entitiesclj

(retract-entities conn es)

retract-entity-txdclj

(retract-entity-txd entity)

retract-pledgesclj

(retract-pledges uid cid)

retract-refsclj

(retract-refs conn eid attr refs)

rollbackclj

(rollback conn tx)
(rollback conn tx-from tx-to)

Reassert retracted datoms and retract asserted datoms in a transaction, effectively "undoing" the transaction. FROM: https://stackoverflow.com/questions/25389807/how-do-i-undo-or-reverse-a-transaction-in-datomic WARNING: very naive function!

Reassert retracted datoms and retract asserted datoms in a transaction,
effectively "undoing" the transaction.
FROM: https://stackoverflow.com/questions/25389807/how-do-i-undo-or-reverse-a-transaction-in-datomic
WARNING: *very* naive function!
raw docstring

slurp-resourceclj

(slurp-resource path)

slurp-resource-memoclj


touchclj

(touch db coll)
(touch db pattern coll)

takes 'entity ids' results from a query e.g. '[272678883689461 272678883689462 272678883689459 272678883689457]'

takes 'entity ids' results from a query
e.g. '[272678883689461 272678883689462 272678883689459 272678883689457]'
raw docstring

tx->datumsclj

(tx->datums {:as tx :keys [db-after tx-data]})

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

× close