This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-01
Channels
- # announcements (7)
- # babashka (10)
- # beginners (60)
- # clerk (4)
- # clojure (19)
- # clojure-conj (5)
- # clojure-europe (48)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (2)
- # clojurescript (12)
- # conjure (2)
- # core-async (24)
- # cursive (3)
- # datalevin (18)
- # events (1)
- # figwheel-main (5)
- # fulcro (22)
- # honeysql (29)
- # hyperfiddle (60)
- # jobs (3)
- # leiningen (18)
- # lsp (47)
- # meander (21)
- # missionary (6)
- # off-topic (35)
- # reagent (14)
- # remote-jobs (1)
- # ring (1)
- # shadow-cljs (32)
- # sql (10)
- # transit (12)
Hi guys, I’m trying to use dtlv
from babashka, when I transact, the return value is: {:datoms-transacted 3}
says it should be
{ :db-before ...
:db-after ...
:tx-data [...] ; plain datoms that were added/retracted from db-before
:tempids {...} ; map of tempid from tx-data => assigned entid in db-after
:tx-meta tx-meta } ; the exact value you passed as `tx-meta
`it looks like it is on purpose: https://github.com/juji-io/datalevin/blob/master/src/pod/huahaiy/datalevin.clj#L228
babashka is not Clojure, the objects such as Datom, Entity, etc. do not exist in that environment, only plain EDN works in there, hence the difference. Use lookup refs instead of :db/id
, which are implementation details anyway.
Also filed an issue https://github.com/juji-io/datalevin/issues/190