(require '[ribelo.doxa :as dx])
as doxa
does not use any special data type, there is no need to create a db, you can simply use a {}
. however, dx/create-dx
allows you to populate the db with data and also allows you to simply add the metadata.
(dx/create-dx {} [{:db/id 1 :name "Petr" :aka ["Devil"]}])
(dx/create-dx {} [{:db/id 1 :name "Petr" :aka ["Devil"]}] {::dx/cache (atom (dxc/doxa-cache))})
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close