(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |