datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
purrgrammer 2019-10-11T10:40:59.006500Z

just found https://github.com/replikativ/hitchhiker-tree/issues/6 which answers the reverse iterator question

peterdee 2019-10-11T22:52:35.012400Z

Hi, It looks like datahike wants a long when, in the schema, the datum is declared :db.type/long. That makes sense, of course, but datahike doesn’t seem to coerce java.lang.Integer to java.lang.Long; the spec throws an error. Would it be possible/reasonable for datahike to coerce integers to long and maybe loosen up the spec to use integer? rather than int? ?

kkuehne 2019-10-14T07:35:11.012500Z

Yes, that makes sense. I'll create a protocol for the schema itself and I'll start a discussion on how to build the specs for the schema. Feel free to recommend best practices there.

peterdee 2019-10-14T18:58:44.012700Z

Would it be possible to have a :db.type/number that generalizes float double and long?

peterdee 2019-10-14T19:07:28.012900Z

Or maybe just double and long.

kkuehne 2019-10-15T08:09:37.013300Z

that would be possible

kkuehne 2019-10-15T08:10:17.013500Z

you would just create a clojure.spec for that in here: https://github.com/replikativ/datahike/blob/master/src/datahike/schema.cljc#L7

peterdee 2019-10-26T00:57:40.014Z

Thanks. I made a PR.