This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-04
Channels
- # admin-announcements (6)
- # alda (1)
- # announcements (3)
- # aws (4)
- # beginners (233)
- # boot (82)
- # cider (11)
- # cljsjs (21)
- # cljsrn (7)
- # clojure (262)
- # clojure-japan (1)
- # clojure-russia (129)
- # clojure-sg (2)
- # clojure-taiwan (2)
- # clojurecup (23)
- # clojurescript (162)
- # clojurex (3)
- # core-async (18)
- # cursive (81)
- # datavis (183)
- # datomic (23)
- # emacs (2)
- # funcool (25)
- # ldnclj (82)
- # lein-figwheel (3)
- # om (196)
- # onyx (74)
- # parinfer (7)
- # portland-or (12)
- # re-frame (60)
- # reagent (48)
- # slack-help (1)
- # yada (9)
you could get a ref to the parent entity and walk its collection(s), or if you want what was just added, you’d use the tempid thing again
Does the tx-report-queue tx-data
not contain the fifth datom element (added?). It’s not mentioned in the docs http://docs.datomic.com/clojure/#datomic.api/tx-report-queue
@jonas: The :tx-data entry does contain full E/A/V/T/Op datoms. I will suggest that be clarified in the doc.
@robert-stuttaford: i want to be able to remove all component IDs in one go … for the moment I have to go through them one by one
but now I have to do a lot of book-keeping around the elements that are added / updated deleted rather than just sending the map back into datomic and let it handle the book-keeping
@raymcdermott: seems like it'd be easy enough to write a transaction function for that.
@tcrayford: that sounds tempting … what would I win?
Yes, makes sense but it still feels like I’m moving boiler plate from one place to another
ah, but the transaction function could be very generic, it doesn't need to be tied to your application at all (which is a pattern I'd generally recommend for transaction functions)
I’m working on an example for the Heroku Datomic thing so it could be good to show that feature
@raymcdermott: I've only written 3 transaction functions in 3 years of using datomic, all of them super generic, which I like a lot.
@tcrayford: I’ll shoot you a link to the code for your comments once it’s done (should be able to finish the Datomic parts over the weekend)