8000 GitHub - alexanderkiel/datomic-spec: Specs for Datomic
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alexanderkiel/datomic-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Specs for Datomic

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0