datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
witek 2020-09-17T14:29:52.085100Z

Hello. I would like to mirror a database. Therefore I need to periodically export changes. What is the idiomatic way to export all changes since a given transaction id?

kkuehne 2020-09-18T07:59:33.000500Z

You can also use the since function like shown https://github.com/replikativ/datahike/blob/development/examples/basic/src/examples/time_travel.clj#L59.

witek 2020-09-17T14:32:38.085800Z

I came up with this: [:find ?e ?a ?v :where [?e ?a ?v ?t] [(> ?t ?last-tx-id)]] . Not sure, if this is the right way to do it.