(entity db id)(es->retract-txd es)(find-all-e db e)(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
(get-value db id attr)find one value of one attribute given a dbid
find one value of one attribute given a dbid
(load-edn path)(load-resource path)(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
(retract-entities conn es)(retract-entity-txd entity)(retract-pledges uid cid)(retract-refs conn eid attr refs)(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!
(slurp-resource path)(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]'
(tx->datums {:as tx :keys [db-after tx-data]})cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |