(is-attr? db attr property)
Returns true iff the attribute is annotated with a property such as
:db/index
or :db.cardinality/many
in the schema.
Returns true iff the attribute is annotated with a property such as `:db/index` or `:db.cardinality/many` in the schema.
(is-derived? db attr)
Returns true iff the attribute is derived, rather than stored in the database.
Returns true iff the attribute is derived, rather than stored in the database.
(normalized-ref attr)
Returns the version of a reference that is guaranteed to be contained
in the schema. E.g. :parent/_child
is normalized to
:parent/child
.
Returns the version of a reference that is guaranteed to be contained in the schema. E.g. `:parent/_child` is normalized to `:parent/child`.
(reverse-ref attr)
Returns the inverted reference. E.g. :parent/child
becomes
:parent/_child
and vice versa.
Returns the inverted reference. E.g. `:parent/child` becomes `:parent/_child` and vice versa.
(reverse-ref? attr)
Returns true iff the attribute is a reverse reference, such as
:parent/_child
.
Returns true iff the attribute is a reverse reference, such as `:parent/_child`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close