Not sure if I run into the same bug as @onetom reported above, or if I don't understand the docs correctly.
I've added both,
com.datomic/client-cloudto my project. Now whenever I try to call
(d/client <some-cfg>) , it crashes with:
> Syntax error (FileNotFoundException) compiling at (datomic/client/impl/shared.clj:1:1).
> Could not locate cognitect/hmac_authn__init.class, cognitect/hmac_authn.clj or cognitect/hmac_authn.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name
If I only add one or the other dependency it works fine. So I can either connect locally or to datomic-cloud, but as I understand we should be able to add both as a dependency at the same time and then either construct one or the other client, or call
I'm still on
You can replicate the behaviour by simply checking out the
ion-starter project and adding
dev-local as a dependency. Leave everything else unchanged and try to create a client.
Oh, I just found this post in the forums: https://forum.datomic.com/t/dev-and-test-locally-with-dev-local/1518/9 So, nevermind. I'll try the latest clj then
if you do upgrade to latest stable clj (184.108.40.2067) you are likely to run into the issue that @onetom was seeing (these issues are related) so you might actually need to go to the prerelease (220.127.116.118) or wait for that to be promoted to stable, should be soon
Nice thanks! I was just going to ask if I can install the pre-release via homebrew for linux, but I can also use that script for now
prereleases are not in brew (or they'd be releases) but you can just follow the instructions at https://clojure.org/guides/getting_started but with that version number on linux1👍
just fyi, if you are posting large text, using a snippet (the lightning bolt in the bottom left of the edit pane) will fold it and syntax highlight it
I'm posting from mobile and that lightning icon brings some search dialog up, but thx for the feedback; I will try to figure this out
btw, what's the license of the Datomic CLI? I haven't found any mention of that in the ZIP file
Nix package for the Datomic Cloud CLI Tools
Adaptation of the official Clojure CLI Nix package to the latest version:
you should ask in main channel, don't know
Is there a way to subscribe to entity changes in Datomic?
Would the tx-report-queue work ^^: https://docs.datomic.com/on-prem/clojure/index.html#datomic.api/tx-report-queue ?
heads up: tx-report-queue does not exist in Datomic Cloud