Fork me on GitHub
#datomic
<
2019-09-15
>
Marcus Vieira19:09:59

hi everyone 👋 how would I go about reseting the data inside datomic after each test block is performed?

chrisblom11:09:59

use a new database, https://github.com/vvvvalvalval/datomock has some stuff to make this efficient

Marcus Vieira12:09:27

I’ll take a look, thanks a lot!

kelveden21:09:15

I'm trying to find any sort of documentation on how to run locally running tests against code that (in production) will run against Datomic Cloud. Does anyone know of any? datomic-free can be spun up easily enough of course but connecting to that and querying it uses a different client library (`datomic.api` from com.datomic/datomic-free) to that used for Datomic Cloud (`datomic.client.api` from com.datomic/client-cloud).

kelveden21:09:18

Ideally I just want to spin up datomic-free in-memory and then connect to it from the cloud client.

kelveden21:09:37

The code for datomic.client.api/client does mention that :local is a valid :server-type. However, there's no mention of it or what config to pass it in the docstring for the function (nor anywhere else I can find). Also, the code for local server type refers to an artifact that I can't find anywhere: com.datomic/client-impl-local.

kenny22:09:35

We’ve been using this for a while now and it gets the job done https://github.com/ComputeSoftware/datomic-client-memdb

kelveden23:09:25

Thanks @U083D6HK9, that looks interesting.