Here is my article on Datahike replication with dat: https://lambdaforge.io/2019/12/08/replicate-datahike-wherever-you-go.html
Great write up! I hope to see more support for replication in Datahike in the future.
I'm currently using pouchdb/couchdb in my clojurescript project, but would love to move to something more clojure-y like datahike
Yes, that is actually a goal to us since long ago. Right now we are trying to figure out how to acquire the resources/manpower to port Datahike's query engine to ClojureScript.
Sounds great, I'd live to pitch in and help wherever needed.
Our current plan of how to do that is to use core.async operations for all DB index accesses like here: https://github.com/replikativ/datahike/blob/master/src/datahike/query.cljc#L454
So in the end all DB operations that require to access index parts that are not part of the root will use core.async and hence support blocking IO in cljs. One could use other asynchronous libraries though, it seems core.async is still the best option for Clojure though.
A good warmup would be to make the cljs tests of https://github.com/replikativ/hitchhiker-tree/ run again. I think we have some issue with transit-cljs and incognito there.
Cool! I’ll take a look in the next couple of weeks. BTW is there a github issue or something outlining the plan for reimplementing cljs support?
Link not found in the article https://lambdaforge.io/2019/12/08/github.com/replikativ/datahike