This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-28
Channels
- # aatree (3)
- # alda (8)
- # avi (21)
- # beginners (37)
- # boot (193)
- # cbus (1)
- # cider (29)
- # cljs-dev (8)
- # cljsjs (3)
- # cljsrn (20)
- # clojure (76)
- # clojure-dev (13)
- # clojure-miami (20)
- # clojure-portugal (2)
- # clojure-russia (220)
- # clojure-sg (2)
- # clojurebridge (5)
- # clojurescript (94)
- # community-development (14)
- # conf-proposals (110)
- # core-async (12)
- # cursive (12)
- # datascript (6)
- # datomic (14)
- # dirac (72)
- # emacs (49)
- # hoplon (86)
- # jobs (33)
- # jobs-discuss (1)
- # ldnclj (6)
- # lein-figwheel (1)
- # off-topic (56)
- # om (139)
- # onyx (29)
- # pedestal (17)
- # proton (23)
- # re-frame (45)
- # reagent (35)
- # ring-swagger (4)
- # test-check (1)
- # testing (8)
- # yada (11)
hi guys, in my entity I have :project/started-date
and its type is instant
. Is there anyway that I can get all the projects that is within a date range using datomic rule ? Or it's better get the data out of datomic then do the filter on it ?
@nxqd: You can use a regular Datomic query with <
and >
predicate constraints on the value of :project/started-date
@stuartsierra: thanks. It seems I overthought the solution then
Hi, I'm trying to convert a #datom into just a vector, basically doing some post-processing on this data before sending it out to subscribed clients.
Is there an easy and performant way to do this in clojure? Right now the way I do it seems like it would be inefficient.
@bplatz: try vec
Ah, maybe (vec (seq datom))
or something similar.
seq
throws: CompilerException java.lang.IllegalArgumentException: Don't know how to create ISeq from: datomic.db.Datum,
vec
throws: CompilerException java.lang.RuntimeException: Unable to convert: class datomic.db.Datum to Object[],
ah, then maybe juxt
is the way to go
If you need a vector.
or destructure like (let [[e a v tx add] datom] [e a v tx add])