Liking cljdoc? Tell your friends :D

lambdaconnect-sync

Synchronisation library.

Build Status

Installation

Leiningen coordinates:

[io.spinney/lambdaconnect-sync "1.0.34"]

Usage

Each function requires a config as the first argument. It can either be in the legacy form:

(def config {:log (constantly nil)
             :as-of d/as-of
             :pull-many d/pull-many
             :pull d/pull
             :q d/q
             :history d/history
             :tx->t d/tx->t
             :with d/with
             :basis-t d/basis-t})

or in the modern form:

(def config {:log (constantly nil)
             :driver *instance of database driver*})

The way to create datomic driver in the modern form is as follows:

(require '[lambdaconnect-sync.db-driver.datomic :as datomic-driver])

(def driver (datomic-driver/->DatomicDatabaseDriver 
                  {:log (constantly nil)
                   :as-of d/as-of                               
                   :pull-many d/pull-many
                   :pull d/pull
                   :q d/q
                   :history d/history
                   :tx->t d/tx->t
                   :with d/with
                   :basis-t d/basis-t}))

There may be more database drivers, for example in clojurescript/javascript world.

License

Copyright © 2022-2024 Spinney

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

Can you improve this documentation? These fine people already did:
Marek Lipert, WojtAcht, a-wiacek & Uiskam
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close