Clojure specs for all functions of the datomic.api
namespace.
Add the following dependency to your project.
[org.clojars.akiel/datomic-spec "0.5"]
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
.
This library contains specs for Datomic data structures. You can use specs like :datomic-spec.core/db
in your own code.
Copyright © 2016 Alexander Kiel
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close