Liking cljdoc? Tell your friends :D

datahike.db.utils


attr->properties

(attr->properties k v)

attr-info

(attr-info db attr)

Returns identifier name and reference value of an attributes. Both values are identical for non-reference databases.

Returns identifier name and reference value of an attributes. Both values are identical for non-reference databases.
raw docstring

component?

(component? db attr)

components->pattern

(components->pattern db index [c0 c1 c2 c3] default-e default-tx)

db?

(db? x)

distinct-datoms

(distinct-datoms db current-datoms history-datoms)

entid

(entid db eid)

entid-some

(entid-some db eid)

entid-strict

(entid-strict db eid)

filter-txInstant

(filter-txInstant datoms pred db)

indexing?

(indexing? db attr)

is-attr?

(is-attr? db attr property)

multival?

(multival? db attr)

no-history?

(no-history? db attr)

reduce-indexed

(reduce-indexed f init xs)

Same as reduce, but f takes [acc el idx]

Same as reduce, but `f` takes [acc el idx]
raw docstring

ref?

(ref? db attr)

resolve-datom

(resolve-datom db e a v t default-e default-tx)

reverse-ref

(reverse-ref ident)

reverse-ref?

(reverse-ref? ident)

rschema

(rschema schema)

temporal-datoms

(temporal-datoms db index-type cs)

tuple-source?

(tuple-source? db attr)

Returns true if 'attr' is an attribute basis of a tuple attribute. E.g. ':a' is an attribute part of the tuple attribute ':a+b'. (tuple-source? :a) returns true.

Returns true if 'attr' is an attribute basis of a tuple attribute.
E.g. ':a' is an attribute part of the tuple attribute ':a+b'.
(tuple-source? :a) returns true.
raw docstring

tuple?

(tuple? db attr)

Returns true if 'attr' is a tuple attribute. I.e., if 'attr' value is of type ':db.type/tuple'

Returns true if 'attr' is a tuple attribute.
I.e., if 'attr' value is of type ':db.type/tuple'
raw docstring

validate-attr

(validate-attr attr at db)

validate-attr-ident

(validate-attr-ident a-ident at db)

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

× close