Liking cljdoc? Tell your friends :D

e85th.commons.datomic


filter-kvclj

(filter-kv db m)

Get entities that satisfy filter conditions specified in m. m is a map of keyword -> values and become conditions in the :where clause. Answers with a seq of datomic entities that match. If a value is nil then adds that as a missing? call.

Get entities that satisfy filter conditions
specified in m. m is a map of keyword -> values
and become conditions in the `:where` clause.
Answers with a seq of datomic entities that match.
If a value is nil then adds that as a `missing?` call.
sourceraw docstring

get-all-entities-with-attrclj

(get-all-entities-with-attr db attr)

Answers with all entities that have the specified attribute

Answers with all entities that have the specified attribute 
sourceraw docstring

get-by-composite-keyclj

(get-by-composite-key db m)

Returns the only entity that matches filter conditions in m. Throws when more than one match is found.

Returns the only entity that matches filter conditions in `m`.
Throws when more than one match is found.
sourceraw docstring

get-db*clj

(get-db* db-or-cn)
source

get-entities-with-attr-by-idsclj

(get-entities-with-attr-by-ids db attr ids)

Get all entities by id which also have the specified attribute. If the ids is an empty seq then returns an empty seq.

Get all entities by id which also have the specified attribute.
If the ids is an empty seq then returns an empty seq.
sourceraw docstring

get-entity-with-attrclj

(get-entity-with-attr db id attr)

Answers with the entity for the id and attr specified. Makes sure the attr is on the entity otherwise returns nil. db is Datomic record, id is an integer attr is a keyword.

Answers with the entity for the id and attr specified.
Makes sure the attr is on the entity otherwise returns nil.
db is Datomic record, id is an integer attr is a keyword.
sourceraw docstring

get-entity-with-attr!clj

source

get-parentclj

(get-parent db ident eid)

Get's the parent for the entity with eid. ident is a keyword with reverse attribute navigation ie :parent/_attribute (NOT :parent/attribute). :parent/attribute must be of type :db.type/ref.

Get's the parent for the entity with eid.  ident is a keyword with reverse attribute
navigation ie :parent/_attribute (NOT :parent/attribute). :parent/attribute must be of
type :db.type/ref.
sourceraw docstring

get-partitionsclj

(get-partitions db)

Enumerates all partitions in the db.

Enumerates all partitions in the db.
sourceraw docstring

new-datomic-dbclj

(new-datomic-db uri)

Creates a new datomic db.

Creates a new datomic db.
sourceraw docstring

prepare-createclj

(prepare-create m)

Removes all keys where there is an associated nil value.

Removes all keys where there is an associated nil value.
sourceraw docstring

prepare-updateclj

(prepare-update entity m)
(prepare-update db eid-or-lookup m)

m is a map of updated values, if m has nil values lookup the current value and generate a retraction.

m is a map of updated values, if m has nil values lookup
the current value and generate a retraction.
sourceraw docstring

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

× close