Fork me on GitHub
#datomic
<
2022-06-22
>
Patrick Brown01:06:07

What exactly is the difference between {:server-type :ion} and {:server-type :cloud}? I'm turned around, because I'm querying and transacting locally with the server-type as ion? I can't help but feel I've got my system wired up wrong, perhaps so wrong it's working. CHEERS!

Patrick Brown10:06:01

YESSS! That was clear and simple. Thanks @U06FTAZV3

đź‘Ť 1
Jakub HolĂ˝ (HolyJak)13:06:18

Hello! Why can't I download the ions library? I just get > Downloading: com/datomic/ion/1.0.59/ion-1.0.59.pom from datomic-cloud > Downloading: com/datomic/ion/1.0.59/ion-1.0.59.jar from datomic-cloud > Error building classpath. Could not find artifact com.datomic:ion:jar:1.0.59 in central (https://repo1.maven.org/maven2/) so it seems like it does not find it in the repo. I suppose that my authentication is fine because before I was missing it in my ~/.m2/settings.xml and then clj was failing with "ExceptionInfo: Unexpected error downloading artifact from datomic-releases-1fc2183a {:bucket "datomic-releases-1fc2183a", :path "maven/releases/com/datomic/ion/1.0.59/ion-1.0.59.pom", :reason :cognitect.anomalies/fault}", which is understandable. So auth is fine but the .pom and/or .jar are not in the s3 bucket? My deps.edn has

:mvn/repos {"datomic-cloud" {:url ""}}
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
        com.datomic/dev-local {:mvn/version "1.0.243"}
        com.datomic/ion {:mvn/version "1.0.59"}
     ...
🙏

jcf18:06:08

I vaguely remember having to grant access to an IAM user when pulling down Datomic dependencies from that bucket a while back. It might be worth double checking your AWS credentials allow you to read from that bucket.

Quentin Le Guennec20:06:45

Does datomic support reciprocal relationship? If so, where can I find documentation on it?

favila20:06:49

Do you mean reverse lookup of a reference?

favila20:06:56

all ref types can be followed backward in entity-map and pull expressions using _ in the name part, e.g. :foo/_bars is the reverse of :foo/bar, i.e. on a bar, it gives you all foo that reference it via :foo/bars

favila20:06:50

In datalog queries there’s no difference. Whether [?foo :foo/bar ?bar] is “backwards” or “forwards” depends on what index is used.

Quentin Le Guennec22:06:58

Thank you, exactly what I was looking for.