All Projects → alexanderkiel → datomic-spec

alexanderkiel / datomic-spec

Licence: EPL-1.0 license
Specs for Datomic

Programming Languages

clojure
4091 projects

Datomic Spec

Build Status Dependencies Status

Clojure specs for all functions of the datomic.api namespace.

Usage

Add the following dependency to your project.

[org.clojars.akiel/datomic-spec "0.5.2"]

In order to instrument the datomic.api functions, you call the following in a namespace which is only loaded at dev and/or test time.

(ns user
  (:require [datomic-spec.core :as ds])
  
(ds/instrument)

The function datomic-spec.core/instrument is similar to clojure.spec.test/instrument but instruments the functions of datomic.api with the appropriate spec overrides. It doesn't instrument other functions. So you have to call clojure.spec.test/instrument yourself in addition to datomic-spec.core/instrument.

Specs

This library contains specs for Datomic data structures. You can use specs like :datomic-spec.core/db in your own code.

Similar Projects

License

Copyright © 2016 Alexander Kiel

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].