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
raspasov 2021-03-20T22:00:40.002300Z

Are there any difference in the API between DataScript and Datahike?

grounded_sage 2021-03-20T22:54:06.008700Z

@raspasov as mentioned in the post. All API calls return core.async channels when in ClojureScript. This is due to the requirements for persistence and having a single threaded environment. Currently this is also true for in-memory since we interact with the hitchhiker-tree asynchronously. Also worth noting that you can optionally have async on the JVM as well which results in the same API. Aside from that the difference is the addition of API’s which provide more compatibility with what you would see in using the Datomic peer.

raspasov 2021-03-20T23:25:47.008800Z

@grounded_sage thanks for the response! Ok, good to know about the core.async channels. So there’s a bit of a difference there (but not critical). What about: • schema • queries • transactions Aka, is one “supposed” to be able to take their DataScript code and use it with Datahike? I completely understand if you can’t provide a guarantee 🙂 Just looking for the general expectation.

grounded_sage 2021-03-20T23:43:28.009Z

Yes you should be able to take Datascript code and use Datahike with the introduction of the channels on cljs side. Additions include schema-on-write, history queries, etc. Feel free to join our Discord ( invite in channel description) and ask questions there. I am happy to continue answering here but the loss of history makes it difficult for others to see these answers.

👍 1