Fork me on GitHub
#datalevin
<
2021-11-23
>
Tomas Brejla20:11:17

Hi, does datalevin support any functionality similar to transaction functions or :match operations in xtdb? I'd like to be able to atomically fetch state of items a,`b`,`c` and if the state meets some conditions, update those 3 items a,`b`,`c` and even create a new item d. In human terms: "only create an order, if stock-level for each item in order is high enough - and in such case also lower the stock level accordingly". All that done as a single transaction. What approach can be used to achieve such functionality with datalevin?