This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-13
Channels
- # announcements (2)
- # beginners (15)
- # calva (6)
- # cider (3)
- # cljsrn (1)
- # clojure (33)
- # clojure-hk (4)
- # clojure-uk (9)
- # clojurescript (13)
- # cursive (5)
- # datomic (6)
- # figwheel-main (1)
- # fulcro (5)
- # graalvm (12)
- # instaparse (1)
- # kaocha (1)
- # nrepl (6)
- # off-topic (5)
- # pedestal (10)
- # quil (8)
- # reitit (2)
- # ring (5)
- # shadow-cljs (10)
- # sql (1)
- # vim (13)
@dustingetz I’ve rolled my own. You could do this in a txn fn or (in my case) in the client that sends the tx data. it’s pretty straightforward to do. you do need a cross-cutting fn to lift idents, re-shape ordered cardinality-N attrs etc.
you are right that this would be a nice lib if it existed. I hope that we will see something like this as an add-on from Datomic/Cognitect (maybe when spec2 is nailed down) but, until then, it’s roll your own
if you use the ideas in this post, it becomes much easier https://cjohansen.no/referentially-transparent-crud/
how about the query side - datomic pull and s2/select