This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-08
Channels
- # adventofcode (31)
- # beginners (97)
- # bigdata (2)
- # boot (276)
- # cider (17)
- # cljsrn (5)
- # clojure (150)
- # clojure-china (3)
- # clojure-conj (8)
- # clojure-greece (1)
- # clojure-india (1)
- # clojure-korea (1)
- # clojure-new-zealand (4)
- # clojure-russia (40)
- # clojure-spec (119)
- # clojure-uk (116)
- # clojurescript (87)
- # code-reviews (110)
- # core-async (4)
- # cursive (11)
- # datomic (26)
- # garden (4)
- # gorilla (7)
- # hoplon (82)
- # humor (1)
- # jobs (2)
- # jobs-discuss (10)
- # luminus (17)
- # onyx (60)
- # planck (2)
- # play-clj (2)
- # protorepl (70)
- # re-frame (121)
- # reagent (7)
- # ring-swagger (3)
- # rum (16)
- # test-check (16)
- # untangled (12)
- # yada (20)
How do you pass a inputn created via collection binding to a rule
(myRule ?artist ?artist-name
[?artist :artist/name ?artist-name])
[:find ?release-name
:in $ [?artist-name ...]
:where
(myRule ?artist ?artist-name)
[?release :release/artists ?artist]
[?release :release/name ?release-name]]
It seems that it loses its or
ness when passed as a plain old variable
same question applies for when passing it into a not-join
, (the query i wish to use it on is a not-join
wrapped in a rule) so not sure how to construct the args to the not-join
(myRule ?artist ?artist-name
(not-join [?artist ?artist-name]
[?artist :artist/name ?artist-name]))
in the return value of a pull from datomic, what kind of data is indicated by the #:keyword symbols? e.g.
neither have I
so that resolves to
{:inv/color {:db/ident :db/blue},
:inv/size {:db/ident :db/large},
:inv/type {:db/ident :db/dress}}
{:inv/color {:db/ident :blue},
:inv/size {:db/ident :large},
:inv/type {:db/ident :dress}}
should :db.type/instant
fields be indexed if i’m going to query for a time period?
e.g.
[:find ?action
:where [?action :action/started-at ?started-at] [(> ?started-at ?last-week)]]
@rauh @tjtolton: thanks for explaining that. Even if the syntax hurts my brain a little (hoping that will change with time).
@tjtolton: I think it's actually this:
{:inv/color {:db/ident :db/blue},
:inv/size {:db/ident :db/large},
:inv/type {:db/ident :db/dress}}
...the #:db{ ... }
syntax means the namespace will be applied to every key in the mapOh oops, never mind, you were right the second time, just the keys, not the values
Just bumped the Datomic Pro Starter Docker container (https://hub.docker.com/r/pointslope/datomic-pro-starter/) to version 0.9.5544