datomic-client-memdb icon indicating copy to clipboard operation
datomic-client-memdb copied to clipboard

Deprecation: `dev-local` doesn't seem to support in-memory DBs

Open onetom opened this issue 5 years ago • 1 comments

I don't quite understand why is this library has been deprecated in favour of dev-local. I haven't found a way to use dev-local to manage an in-memory DB. If that's true, then this library is still fulfilling a very important use-case, isn't it?

I did ask about this on the Datomic forum too just now: https://forum.datomic.com/t/dev-and-test-locally-with-dev-local/1518/11?u=onetom

onetom avatar Jul 22 '20 07:07 onetom

Hi @onetom.

This library was really only intended to bridge the gap of local testing for Datomic Cloud. As Jaret said in his response, Datomic On-Prem already has the tools available to do this sort of thing. Dev-local entirely supersedes this library. It includes the complete feature set the most recent version of Datomic supports (tuples, xform, index-pull, etc). It will also fail in the same ways Datomic Cloud client calls will fail.

dev-local does create and maintain DB data on the filesystem. With a small bit of work, you can make it work just like the in-memory library. We have released dev-local-tu to help with this. As far as I can tell, this will give you everything that you had before with Datomic free + datomic-client-memdb. I have also written a small accompanying blog post on using dev-local for tests. I'd be curious to hear if you hit a particular case this new approach does not cover.

kennyjwilli avatar Jul 29 '20 02:07 kennyjwilli