Integrating the Client Library
The Datomic Client library is provided via
Maven Central.It can be integrated in a Maven project, tools.deps or Leiningen project.
Download Client Library
The Datomic Client library is provided via
Maven Central.Create a new Clojure project and add the client library to your dependencies:
NOTE: The Datomic Client requires Clojure version 1.9 or later
Maven
To retrieve the Client library for a Maven project, add the following snippet inside the <dependencies> block of your pom.xml file:
<dependency> <groupId>com.datomic</groupId> <artifactId>client-pro</artifactId> <version>1.0.76</version </dependency>
Clojure CLI
To use the Client library from a Clojure CLI REPL, add the following to your deps.edn dependencies map:
com.datomic/client-pro {:mvn/version "1.0.76"}
Leiningen
Add the following snippet in collection under :dependencies
key to your project.clj file:
[com.datomic/client-pro "1.0.76"]
Start a Clojure REPL
Clojure CLI
Start a REPL with the Clojure CLI in your terminal:
clj
Once the REPL is running, you have to import the Client library.
(require '[datomic.client.api :as d])
You now have a running environment you can use to execute commands against Datomic.
Leiningen
Start your Leiningen REPL with:
lein repl
Once the REPL is running, you have to import the Client library.
(require '[datomic.client.api :as d])
You now have a running environment you can use to execute commands against Datomic.