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.
(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 of spec.datomic is done using YourKit.
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.
Copyright © 2016 Nate Smith
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.