Re: How to get a list of changes in Datomic

2014-12-28 Thread Tj Gabbour
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

Re: How to get a list of changes in Datomic

2014-12-28 Thread rogergl
Thanks, that helped a lot. Regards Roger -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To

How to get a list of changes in Datomic

2014-12-27 Thread rogergl
I would like to replay all changes since a specific timestamp. It seems as if I can get all transactions with (q '[:find ?t :where [_ :db/txInstant ?t] ] (db conn)) Using as-of would allow me to replay the state at a given point in time. But that would replay the complete state

Re: How to get a list of changes in Datomic

2014-12-27 Thread Ashton Kemerling
I think this conj video covered that. http://m.youtube.com/watch?v=7lm3K8zVOdY --Ashton Sent from my iPhone On Dec 27, 2014, at 1:57 PM, rogergl ro...@gilliar.de wrote: I would like to replay all changes since a specific timestamp. It seems as if I can get all transactions with (q