workflo.macros.entity.datascript

attr-schema

(attr-schema attr-opts)

entity-schema

(entity-schema entity)

Returns the DataScript schema for an entity.

merge-attr-schema

(merge-attr-schema [attr-name prev-schema] [_ next-schema])

“Merges” two schemas for an attribute with the same name by throwing an exception if they are different and the first is not nil, and otherwise picking the second.

merge-schemas

(merge-schemas schemas)(merge-schemas schemas merge-fn)

Merge multiple DataScript schemas so that there are no conflicting attributes. The default behavior is to throw an exception if two schemas for the same attribute are different.