Fork me on GitHub
#xtdb
<
2019-11-15
>
euccastro10:11:15

are there any plans to make crux use tick (when that's stable) or something other than clojure #insts (i.e., java.util.Dates)?

malcolmsparks10:11:41

Tick can be used to construct java.util.Date in an app but I don't foresee tick being part of Crux core.

✔️ 4
malcolmsparks10:11:32

There is some overlap between Allen's interval algebra and bitemporality beyond point in time, but that's further along the roadmap

💯 4
malcolmsparks10:11:03

Treat these comments as speculative 🙂

4
euccastro14:11:32

I'm getting the following when trying to read edn data to bootstrap some in-memory DB: No reader function for tag crux/id. at some point earlier today I could read that alright without explicitly installing whatever reader extension is needed for that. how do I make sure that's installed by the time I initialize my test DB?

euccastro14:11:11

actually if I visit the edn file in emacs I can evaluate it alright...

euccastro14:11:06

OK, I got it working by passing {:readers {'crux/id crux.codec/id-edn-reader}} explicitly to clojure.edn/read-string. not sure if this is how it's meant to be done

refset15:11:51

Interesting :thinking_face: I haven't seen this workaround have to be used before. Are you using lein? Which version of Crux are you using?

refset15:11:56

my understanding of how the readers work is sketchy at best, but it sounds like this is worth a note in the docs

euccastro15:11:13

is it by design that crux is trying to verify my transaction data against any specs I have installed for the relevant keys, or is that a side effect of crux trying to verify its own specs?

euccastro15:11:11

my specs are against some denormalized form of the data, so they're not accepting the normalized form I'm passing to crux

euccastro15:11:50

I guess I could use different namespaces for the normalized data or something; just asking whether this is a bug or a feature is all 🙂

refset15:11:49

@euccastro interestingly, someone asked a similar question on the Zulip last Saturday which I just responded to 🙂 (I assume you're not connected...?) - see https://juxt-oss.zulipchat.com/#narrow/stream/194466-crux/topic/spec.20attributes -- but to answer your question here, Crux validates the txs itself so this is an expected side-effect (aka a "feature") though if you have strong opinions that it should work differently then we would be happy to explore options in a GitHub issue (or even if you want to discuss your workaround idea)

euccastro16:11:13

no strong opinions; just curious. I am not connected to the zulip, no; will do so now. thanks!

👍 4
danbunea19:11:54

Hi, is there a Docker image with crux / rocks DB I could just start using right away?

refset19:11:22

@U0GE6JTKK hey! The current Docker image is a little stale, though it will do pretty much what you want. We can re-publish with the latest version of Crux on Monday. Are you looking to only use the HTTP API? Here are the details on the image: https://github.com/juxt/crux/tree/master/docs/example/standalone_webservice

danbunea05:11:44

:thumbsup: