(attribute ident type & {:as opts})
Creates a Datomic schema entry for an attribute. Cardinality defaults to one-to-one. Generates UUID for :db/id.
Creates a Datomic schema entry for an attribute. Cardinality defaults to one-to-one. Generates UUID for :db/id.
(init! {:keys [db-schema client-schema]})
Stores schemas and returns hierarchy for provided schemas and Precept's internal schema
Stores schemas and returns hierarchy for provided schemas and Precept's internal schema
(ref-type-attrs schema)
Returns vector of keywords from a Datomic schema that are :db.type/ref
.
Returns vector of keywords from a Datomic schema that are `:db.type/ref`.
(schema->hierarchy schema)
Creates a hierarchy from a Datomic schmea by cardinality and uniqueness. Used by implementation to enforce both.
Creates a hierarchy from a Datomic schmea by cardinality and uniqueness. Used by implementation to enforce both.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close