This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-25
Channels
- # announcements (4)
- # beginners (26)
- # calva (18)
- # cider (24)
- # clojure (35)
- # clojure-brasil (9)
- # clojure-dev (6)
- # clojure-europe (39)
- # clojure-madison (1)
- # clojure-nl (1)
- # clojure-norway (100)
- # clojure-uk (6)
- # clojurescript (17)
- # data-science (15)
- # datalevin (5)
- # emacs (1)
- # events (2)
- # introduce-yourself (2)
- # javascript (1)
- # malli (28)
- # missionary (7)
- # off-topic (59)
- # polylith (20)
- # reitit (2)
- # releases (1)
- # remote-jobs (2)
- # rewrite-clj (5)
- # shadow-cljs (27)
- # sql (5)
- # squint (63)
- # xtdb (8)
I noticed some things with datalevin entity objects that were quite surprising to me. Are these intentional? keys
does not include :db/id
, or any staged keys, which means conversion to a plain map is incomplete
(:db/id (d/entity foo)) ;;=> 86
(:db/id (into {} (d/entity foo))) ;;=> nil
(:foo (assoc (db/entity foo) :foo "123")) ;;=> 123
(:foo (into {} (assoc (db/entity foo) :foo "123"))) ;;=> nil
are both of these intentional?