This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-04
Channels
- # architecture (13)
- # bangalore-clj (1)
- # beginners (174)
- # boot (25)
- # cider (65)
- # cljs-dev (10)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (169)
- # clojure-berlin (27)
- # clojure-brasil (32)
- # clojure-greece (3)
- # clojure-russia (31)
- # clojure-sg (4)
- # clojure-spec (6)
- # clojure-uk (74)
- # clojurescript (186)
- # code-reviews (5)
- # css (12)
- # cursive (17)
- # datascript (1)
- # datomic (45)
- # dirac (33)
- # funcool (42)
- # hoplon (25)
- # jobs (6)
- # jobs-discuss (114)
- # lambdaisland (6)
- # leiningen (1)
- # luminus (24)
- # off-topic (86)
- # om (13)
- # om-next (14)
- # onyx (75)
- # perun (2)
- # protorepl (19)
- # re-frame (2)
- # reagent (17)
- # ring-swagger (2)
- # rum (1)
- # slack-help (2)
- # specter (31)
- # test-check (5)
- # timbre (1)
- # untangled (34)
- # vim (8)
@zmaril thanks. I’ve used datascript before and enjoyed it very much. However, I was thinking of working with data structures that are not indexed or stored in a ref.
This is probably a noob fail, but I am struggling to return all attributes for specific entity for which I know the index value of
@ghaskins as indicated here: http://docs.datomic.com/query.html#pull-expressions you’d want something like:
see the example here:
[:find (pull ?e [:release/name]) (pull ?a [*])
:in $ ?artist-name
:where [?e :release/artists ?a]
[?a :artist/name ?artist-name]]
I am getting this: "java.lang.IllegalArgumentException: Argument [*] in :find is not a variable"
try this:
(datomic/q '[:find (pull ?e [*])
:in $ ?symbol
:where [?e :refdata/symbol ?symbol]]
db
symbol)
out of curiosity, is the (pull) form some kind of special form in this context, or is it merely that the datomic/ ns was not valid in the transactor context and datomic is implicitly :refer :all ?
so, trying to import all my company's data into datomic to get an idea of how many datoms it will look like, and so that I can demo using datomic. Is there a "day of datomic" section about importing data?
@ghaskins Sorry - I got pulled away. No pun intended. Correct, you can’t run arbitrary code in the find specification. You can see the allowed forms in the grammar here: http://docs.datomic.com/query.html#grammar
You can define a custom aggregate function, but it will require some specific parameters
@tjtolton http://stackoverflow.com/questions/27778339/migrate-to-datomic-from-postgres specifically check out the video Ben links in edit to his answer. We don't have a day of datomic like tutorial, but hopefully that answer and the video will help.