Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

nwjsmith/spec.datomic

Repository files navigation

spec.datomic

CircleCI

clojure.spec specs for Datomic's query data. Note this is under active development, so you will get very little use out of it right now.

Usage

(require '[com.theinternate.spec.datomic :as datomic-spec])
(require '[clojure.spec :as s])
(s/valid? ::datomic-spec/query '{:find [?e]
                                 :in [$ ?fname ?lname]
                                 :where [[?e :user/firstName ?fname]
                                         [?e :user/lastName ?lname]]})
;; => true
(s/valid? ::datomic-spec/query '[:find [?name ...]
                                 :in $ ?artist
                                 :where [?release :release/name ?name]
                                        [?release :release/artists ?artist]])
;; => true

(s/valid? ::datomic-spec/query '[:find ?e
                                 :inputs $ ?artist
                                 :where [?e :release/artists ?artist]])
;; => false

Profiling

Profiling of spec.datomic is done using YourKit.

YourKit Logo

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

License

Copyright © 2016 Nate Smith

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

About

Specs for Datomic's query data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published