Fork me on GitHub
#datomic
<
2019-06-01
>
daniel.spaniel20:06:49

Hi, I have a question about free vs client ( ion ) versions. I installed the latest free version by putting this in the deps.edn file

daniel.spaniel20:06:50

com.datomic/datomic-free {:mvn/version "0.9.5697"}

daniel.spaniel20:06:15

then I notice that with datomic.api.d/transact I have to transact like this

daniel.spaniel20:06:54

(d/transact conn some-single-schema)

daniel.spaniel20:06:11

instead of usually with datomic.client.api/transact i do this

daniel.spaniel20:06:33

(d/transact conn {:tx-data some-single-schema})

daniel.spaniel20:06:16

I guess I wonder why those api's would be different. and wonder if I have old version or if that is on purpose that the peer api does not use the tx-data map to pass in data ?

daniel.spaniel20:06:23

I am trying to setup testing ( to use the free peer locally ) and I can setup the local peer database ( create it ) fine, but was hoping to be able to call the same functions to push data to the local database as I do with the client db

johnj22:06:16

yes, the APIs are different

johnj22:06:20

you can wrap them, and there's also the client on-premise which is similar to the cloud client

daniel.spaniel23:06:10

right ... good point about the on premise being similar to cloud, and i found a library that wraps it like you said ( sorta wraps it ) but it is just interesting that the apis don't match when it would be super nice if they did ( no hackery needed to switch )