This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-25
Channels
- # architecture (4)
- # bangalore-clj (3)
- # beginners (11)
- # chestnut (1)
- # cider (24)
- # cljs-dev (14)
- # clojure (97)
- # clojure-finland (1)
- # clojure-gamedev (19)
- # clojure-italy (11)
- # clojure-nl (31)
- # clojure-norway (1)
- # clojure-uk (52)
- # clojurescript (71)
- # core-async (4)
- # cursive (60)
- # datascript (8)
- # datomic (115)
- # emacs (29)
- # figwheel (11)
- # fulcro (3)
- # garden (1)
- # hoplon (1)
- # lein-figwheel (1)
- # leiningen (7)
- # luminus (13)
- # mount (1)
- # off-topic (51)
- # onyx (31)
- # pedestal (2)
- # portkey (1)
- # re-frame (22)
- # reagent (22)
- # reitit (6)
- # remote-jobs (1)
- # schema (1)
- # shadow-cljs (73)
- # specter (2)
- # sql (1)
- # unrepl (3)
- # vim (11)
- # yada (4)
what is the best way of having unique ids for IDs (:db/id) I tried using string(UUID -> str) and it doesn’t seem to work. t/now -> to-long
works
Another question 🙂 This query is not working
(defn find-before-time [end]
(let [query '[:find [(pull ?e [*]) ...]
:where
[?e :timestamp ?time]
[(< ?time)]]]
(d/q query @conn end)))
(defn find-before-time
[end]
(let [query '[:find [(pull ?e [*]) ...]
:in $ ?end
:where
[?e :timestamp ?time]
[(< ?end ?time)]]]
(d/q query @conn end)))
✔️ 4
Thanks @U2J4FRT2T