Clojure bindings for CozoDb.
Artefacts are on Clojars.
In a REPL:
(use 'cozo-clj.core)
(in-ns 'cozo-clj.core)
;; open db
(def db (open-db "_test_db"))
;; run query
(iquery db "?[] <- [[1,2,3]]")
;; run query with bindings
(iquery db "?[] <- [[1,2,3,$a]]" {:a "clojure"})
;; close db
(close-db db)
iquery
will try to print the results (including errors) nicely and return nil
.
For non-interactive situations, use query
instead.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close