--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi!
If I understand correctly... consider something like the following:
(let [log (d/log (db/conn)) my-tx 123456789123456] (->> (d/tx-range log my-tx (inc my-tx)) seq pprint))
You get a bunch of datoms and transaction ID.
You can access a datom's fields with: :e :a :v :tx :added.
At first, the datoms look depressing because attributes look like 74 instead of :mouse/name. So use(d/ident db 74) to get :mouse/name. (You might like to make a little util which turns these datoms into a nice map or record. Records are nice because they seem to print fields in the :e :a :v :tx :added order you declare.)
FWIW, you may see two datoms where the entities are the same, but :added is different. That's because you changed something; the entity's old value was retracted and the new value was added.
Hope this helps,
Tj