Client Library

You can connect to Datomic via clients or peers. First time users should follow the Getting Started process using Clients.

When you're ready to integrate the Datomic Client into your project, this document provides details on how to setup your Client library dependencies. For analagous information for using the Peer Library in your project see Integrating the Peer Library.

Client Setup

The Datomic Client library is provided with the Datomic distribution downloaded in the Get Datomic step. For convenience, you can start a repl that includes the Client library by running:

bin/repl 

from the root of the Datomic distribution.

Project Configuration

The Datomic Client library is provided via Maven Central.

  • 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>clj-client</artifactId>
      <version>0.8.606</version>
    </dependency>
    

    Replacing the version number as appropriate.

  • Leiningen

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

    ;; in collection under :dependencies key
    [com.datomic/clj-client "0.8.606"]
    

    Replacing the version number as appropriate.