This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-20
Channels
- # admin-announcements (26)
- # beginners (1)
- # boot (157)
- # cider (46)
- # clojure (52)
- # clojure-italy (19)
- # clojure-japan (31)
- # clojure-russia (61)
- # clojure-sg (3)
- # clojurescript (65)
- # clojurex (7)
- # clojutre (8)
- # datascript (15)
- # editors (19)
- # emacs (9)
- # funcool (13)
- # hoplon (74)
- # ldnclj (13)
- # liberator (20)
- # off-topic (70)
- # om (5)
- # onyx (1)
- # re-frame (5)
- # reagent (20)
- # testing (23)
@sonnyto: here, I wrote it down for future reference https://github.com/tonsky/datascript/wiki/Tips-&-tricks
(defn q [query & params] "wrapper around d/q so that you don't have to pass in the database @conn" (println params) (d/q query @conn params))
here's my solution to that https://gist.github.com/sonwh98/3f49b046ae5fd1355b10
so, i'll admit to being pretty new to datascript, datalog and datomic...i am trying to get results from a datascript db based on a query. I have the query returning :db/ids and rather than craft in the query what i want returned, i just want a way to turn these ids into fully-formed results.