This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-25
Channels
- # aleph (1)
- # announcements (6)
- # babashka (13)
- # beginners (21)
- # clj-http (25)
- # clj-kondo (23)
- # clojure (17)
- # clojure-europe (49)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (4)
- # clojuredesign-podcast (15)
- # clojurescript (6)
- # cursive (18)
- # datomic (22)
- # emacs (29)
- # hyperfiddle (55)
- # introduce-yourself (4)
- # polylith (34)
- # portal (10)
- # releases (1)
- # shadow-cljs (16)
- # spacemacs (2)
Hi, I added datomic-pro
to my deps.edn
com.datomic/datomic-pro {:local/root "datomic-transactor-pro-1.0.7075.jar"}
since downloading the datomic pro .jar file and putting it in the repo/prooject dir
But, now I get:
Could not find artifact com.cognitect:tap:jar:0.1.38 in central ( )
And I don't know what to do now@U055PQH9R4M What tutorial/guide are you following? A brief look at the Datomic docs suggest that the Datomic Pro download is a standalone server and what you need in your own code is the com.datomic/peer
dependency (so you can talk to it).
Have you worked through these instructions? https://docs.datomic.com/pro/getting-started/dev-setup.html
I’m currently struggling through the same issue and asked for help on the datomic channel. The documentation is fragmented and difficult to follow for a beginner.
In any case, what seems to be the correct procedure to follow for local permanent storage is to place the following in deps.edn
com.datomic/peer {:mvn/version "1.0.7075"}
find the correct properties file in the config/samples directory, modify that as needed, following or guessing your way through the process outlined, and then start the transactor using the properties file.
See https://docs.datomic.com/pro/getting-started/transactor.html and https://docs.datomic.com/pro/overview/storage.html#sql-database
What isn’t clear at all to me is what needs to be on the java classpath for Datomic Pro to work. There are quite a few JAR files in various directories in the distribution. I don’t see anything, yet, in the documentation about what needs to be added to the classpath.
Isn't there a script to start the database in the distro?
(although I'm puzzled as to why you're not using the Datomic Local setup for local dev?)
I would definitely ask in #C03RZMDSH and see if there's a better support channel than Slack that the Datomic team use.
Cool. I was mostly puzzled about how to talk to it , I think peer does all the talking and transactor does the writing
The bin
folder in the exploded ZIP file has a bunch of scripts -- so I expect one or more of those starts the DB...?
@U04V70XH6 I've used the Datomic Local setup in the past. What I'm trying to figure out is how to set datomic up using SQLite as a storage service so that I can do the same as a starting point in production, particularly for a startup.
The transactor is started using a script in the bin directory. I still need help figuring out how to correctly configure the properties file and understand what JARs need to be placed on the path.
To troubleshoot and learn more about classpath voodoo, this might be helpful: https://figwheel.org/docs/classpaths.html
Sometimes one thinks one has made something discoverable on the classpath only to realize one hasn't! (Can be very frustrating.)
If you are using Leiningen, lein classpath
can be helpful to determine if what you think you've placed on the classpath is really there -- or if you're using the version you intended to!
@U02U1T66REZ Thanks for the http://figwheel.org link. If needed, it seems I could copy the datomic distribution into the project directory and add "datomic" to :paths in deps.edn file as a simple way forward. I'll experiment tomorrow ...
I really would not expect you to need anything from the Pro ZIP distro on your classpath -- just the peer library...