This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-25
Channels
- # announcements (2)
- # babashka (22)
- # beginners (31)
- # calva (4)
- # cider (26)
- # clj-kondo (10)
- # clojure (32)
- # clojure-europe (1)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-spec (16)
- # clojure-switzerland (5)
- # clojure-uk (25)
- # clojurescript (108)
- # clojutre (15)
- # code-reviews (3)
- # data-science (1)
- # datomic (92)
- # emacs (1)
- # fulcro (8)
- # graalvm (8)
- # jackdaw (8)
- # jobs (1)
- # jobs-discuss (1)
- # leiningen (6)
- # off-topic (56)
- # pathom (6)
- # pedestal (5)
- # re-frame (11)
- # remote-jobs (1)
- # shadow-cljs (4)
- # spacemacs (2)
- # sql (41)
- # tools-deps (7)
- # xtdb (25)
I stumbled into the fact that when I do a put, crux is running my document through spec (I have specs registered for some namespaced keywords).
I have some timestamps in my data. In my internal structures, these manifest as clj-date kinda things. That is what my spec was written to enforce.
by the time I put the document into crux, I have morphed these into ISO date strings, with the hope of being able to get inequality help on crux queries treating them as strings.
I was hesitant to put the "goofy" types in the document, and certainly wouldn't expect inequality comparisions to work on datatypes you guys know nothing about.
If you tell me that I can write a clj-time/date-time object and compare on that, I will be floored.
we're not certain who's heading to the Conj yet, but I think a few JUXTers have submitted talk proposals so 🤞 - I already know I won't be there myself unfortunately. Whilst it's probably the wrong continent for you, Håkan (lead dev) is speaking at ClojuTRE this week and will be there with a large JUXT contingent.
@hoppy not a Crux expert yet but Crux can definitely out of the box handle #inst type things as well as any java.time objects (and anything else serializable by nippy)
I believe you can also create custom serializers/deserializers for anything via nippys interrace for that
I get that, but these are timecards, so we wanna query by date-range. If I can't do inequality comparisions, I'm hosed.
You can use arbitrary predicates your Crux queries as well though there may be reasons you don't want that ( I'm currentlly doing kinda fancy date stuff with just/tick intervals right in my queries)
I guess I'll go have a lab with this. It's kinda nice that crux is verifying my specs, but I just wasn't sure what it wants to eat
@hoppy we don't have bandwidth this week to look into exactly what's possible, but I'm pretty certain @jjttjj is right that you can go a long way with custom predicates and readers currently (there has been some discussion about custom readers on the Official juxt-oss
Zulip #crux too, so I'd recommend checking that out)
we're not certain who's heading to the Conj yet, but I think a few JUXTers have submitted talk proposals so 🤞 - I already know I won't be there myself unfortunately. Whilst it's probably the wrong continent for you, Håkan (lead dev) is speaking at ClojuTRE this week and will be there with a large JUXT contingent.