This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-31
Channels
- # admin-announcements (23)
- # announcements (3)
- # beginners (59)
- # boot (122)
- # clojure (117)
- # clojure-berlin (3)
- # clojure-dev (3)
- # clojure-italy (3)
- # clojure-japan (10)
- # clojure-russia (69)
- # clojurebridge (12)
- # clojurescript (183)
- # clojutre (14)
- # code-reviews (4)
- # core-async (79)
- # core-logic (18)
- # core-matrix (1)
- # cursive (7)
- # datascript (1)
- # datomic (18)
- # editors (3)
- # events (18)
- # hoplon (20)
- # ldnclj (24)
- # luminus (1)
- # off-topic (1)
- # other-lisps (1)
- # re-frame (12)
- # reagent (104)
quick question … can I filter datoms based on transaction data? I guess yes but is that via a standard query or do I have to write code?
in my use case, I have two transactions on the same data but would sometimes like to show the data back to the user based on the source system (tracked in the transaction)
@raymcdermott: the transaction entities are perfectly queryable from normal queries
ok cool - that’s what I hoped but I cannot see any examples
ah - ok so I wouldn’t need to use the history view? Or maybe I would combine that?
I see the example
[:db/add #db/id[:db.part/tx] :data/src "http://example.com/catalog-2_29_2012.xml"]
so (just to nail it) I can just add :data/src to the query?
ah, ok and how would that work with pull?
@raymcdermott: I believe It depends if the data you’re interested in is in the current db or not.
with pull - I wouldn't be too surprised if it didn't work with transaction entities, or if they did. If they do, you'd probably just use the txid as the entity id
ok let me try and play over the weekend and I’ll come back here
thanks for the great guidance so far1
s/1/!/