Fork me on GitHub
#datomic
<
2019-05-20
>
conan11:05:02

For some reason I can't import datomic.client.impl.shared.Connection and datomic.client.impl.shared.Db, although these are the types that are returned to me when creating connections and dbs. Is there some reason this won't work, or do I just have a weird dependency problem?

conan11:05:36

(import datomic.client.impl.shared.Connection)
Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).

(type (conn))
=> datomic.client.impl.shared.Connection

(type (d/db (conn)))
=> datomic.client.impl.shared.Db

conan11:05:20

oh i see, it's because Datomic's client classes are defined using deftype, whereas presumably the on-prem ones are simply java classes. i needed to require datomic.client.impl.shared in order to get those types

favila12:05:47

I think on-prem is just fully AOTed

conan11:05:49

Is there a widely-used solution for managing schema migrations in Datomic Cloud? I used to use conformity with on-prem and was very happy with it

cjsauer14:05:39

This doesn’t fit your “widely used” criteria, but I was able to rather easily adapt one of Stu’s examples to DCloud: https://gist.github.com/cjsauer/4dc258cb812024b49fb7f18ebd1fa6b5

cjsauer14:05:00

IIRC the only change was replacing the use of d/entity with d/pull

conan16:05:28

oh nice, thanks. i'll give that a shot

roland12:05:33

Hi, is there a way to lazily iterate through datoms of an index in a reverse order ? I'm using d/datoms but can only get an iterator from it

stuarthalloway17:05:54

Not at present.

Drew Verlee17:05:43

In https://docs.datomic.com/cloud/tutorial/assertion.html#org0a2909b, sample-data is missing a closing parens right? seems minor but just in case its easy to fix 🙂

marshall18:05:41

yes it appears to be @drewverlee I’ll fix it - thanks

👍 4
Drew Verlee18:05:48

the docs so far have been great!