Re: clojure.core.match: AssertionError: Pattern row reuses wildcards

2015-07-02 Thread Linus Ericsson
Use the :tx-data as a $-database! The only pitfall is that the second position, the attribute, and all other references (reference type) is just a reference to the attribute entity (a long). Let's say you find :db/txInstant to be 53, and :community/category to be 112 the query would look like

clojure.core.match: AssertionError: Pattern row reuses wildcards

2015-07-01 Thread Alan Thompson
Hi - I am trying to write some unit tests for Datomic using core.match to keep things succinct. I was hoping to use a match pattern like this: [ {:e tx-eid :a :db/txInstant:v _ :tx tx-eid :added true} {:e _ :a :community/category :v free stuff :tx tx-eid

Re: clojure.core.match: AssertionError: Pattern row reuses wildcards

2015-07-01 Thread David Nolen
Just isn't supported. Patch welcome :) David On Wed, Jul 1, 2015 at 3:46 PM, Alan Thompson clooj...@gmail.com wrote: Hi - I am trying to write some unit tests for Datomic using core.match to keep things succinct. I was hoping to use a match pattern like this: [ {:e tx-eid :a