(def-adapted-api path)
Defines entitydb
api functions in the current namespace. Adapts
each to expect the store
argument to be a map that embeds an
entity-db
at key-path path
.
Defines `entitydb` api functions in the current namespace. Adapts each to expect the `store` argument to be a map that embeds an `entity-db` at key-path `path`.
(get-collection store collection-name)
(get-collection store collection-name query)
(get-entities-from-idents store entity-idents)
(get-entities-from-idents store entity-idents query)
(get-entity-from-ident store entity-ident)
(get-entity-from-ident store entity-ident query)
(get-entity-idents-to-remove entity-idents-to-remove relations ref-idents)
(insert-collection store entity-type collection-name data)
(insert-collection store entity-type collection-name data collection-meta)
(insert-named store entity-type entity-name data)
(insert-named store entity-type entity-name data named-meta)
(insert-prepared store prepared)
(insert-prepared store {:keys [entity related-entities]} parent-entity-ident)
(prepare-insert store entity-type entity)
(prepare-insert store entity-type entity related-entities)
(prepare-relations store
current
related-entities
relation
{:keys [iter-path path ident relation-name] :as cursor})
(remove-ident-from-collections store entity-ident)
Return store with entity-ident cleared from collections. Will return empty collection if entity-ident was the only element in collection.
Return store with entity-ident cleared from collections. Will return empty collection if entity-ident was the only element in collection.
(remove-ident-from-named-items store entity-ident)
Return store without named-items that contain passed entity-ident.
Return store without named-items that contain passed entity-ident.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close