Liking cljdoc? Tell your friends :D

workflo.entitydb.util.operations


add-entitiescljs

(add-entities db db-config entity-name entities)
(add-entities db db-config entity-name entities merge-fn)
source

add-entitycljs

(add-entity db db-config entity-name entity)
(add-entity db db-config entity-name entity merge-fn)

Adds the given entity to the db, or updates the existing instance if the entity already exists in the db.

Adds the given entity to the db, or updates the existing instance
if the entity already exists in the db.
sourceraw docstring

default-mergecljs

(default-merge entity-1 entity-2)
source

remove-entitiescljs

(remove-entities db db-config entity-name entities)

Removes all given entities from the db.

Removes all given entities from the db.
sourceraw docstring

remove-entitycljs

(remove-entity db db-config entity-name entity)

Removes the given entity from the db.

Removes the given entity from the db.
sourceraw docstring

remove-entity-by-refcljs

(remove-entity-by-ref db db-config ref)

Removes the entity from the db that corresponds to the given ref. Note: This is a slow operation, as the ref lacks type information and thus this function has to check all entity maps to find the corresponding entity.

Removes the entity from the db that corresponds to the given ref.
*Note: This is a slow operation, as the ref lacks type information and
thus this function has to check all entity maps to find the corresponding
entity.*
sourceraw docstring

update-entitycljs

(update-entity db db-config entity-name entity)
(update-entity db db-config entity-name entity merge-fn)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close