by alecco · 2y ago · 0 comments
SQL:2011 added a lot of temporal features.
Datomic is based on Datalog which even though is not relational it's kind of the same, and has temporal support. [2]
[1] https://en.wikipedia.org/wiki/SQL:2011
[2] https://vvvvalvalval.github.io/posts/2018-11-12-datomic-even...
(BTW 24 points at the top of HN and no comments? Hmm)
In terms of temporal data handling & relational & Datalog, it's worth looking at Differential Datalog: https://github.com/vmware/differential-datalog
My point was you can do the equivalent of Event Sourcing with SQL and even better with Datomic.
> In Event Sourcing Church, we’re not doing that anymore. We’re not losing business data; we keep them. We keep them as events.
Note it only supports "transaction time" (or "system time" per SQL:2011) but not "valid time" (~"event time") which is needed for a bitemporal data model. [1]
[1] https://vvvvalvalval.github.io/posts/2017-07-08-Datomic-this...