«

Accessing the Client Library

This page is for users who have completed the setup and covers how to integrate the Datomic Client library into your Java or Clojure project.

Installing the Client Library

The Datomic Client library includes both the synchronous and asynchronous APIs, and is provided via Maven Central.

Clojure CLI

To use the Client library from a Clojure CLI REPL, add the following to your deps.edn dependencies map:

com.datomic/client-cloud {:mvn/version "1.0.125"}

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-cloud</artifactId>
 <version>1.0.125</version>
</dependency>

Leiningen

To include the Client library in a Leiningen project, add the following snippet to your project.clj file in the collection under :dependencies key.

com.datomic/client-cloud {:mvn/version "1.0.125"}

Make sure that Clojure dependency is set to at least [org.clojure/clojure "1.9.0"].

Now that you have the Datomic Client library integrated into your project, you can start the Client Tutorial.