«

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.130"}

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.130</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 the :dependencies key.

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

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.