Liking cljdoc? Tell your friends :D

precept.schema


a-v-pairs->tuplesclj/s

(a-v-pairs->tuples e avs)
source

attributeclj/s

(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.
sourceraw docstring

by-identclj/s

(by-ident schema)
source

enumclj/s

(enum ident & {:as fields})
source

guidclj/s

(guid)
source

init!clj/s

(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
sourceraw docstring

one-to-many?clj/s

(one-to-many? by-ident attr)
source

persistent-attrsclj/s

(persistent-attrs)
source

persistent-factsclj/s

(persistent-facts)
source

precept-schemaclj/s

source

ref-type-attrsclj/s

(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`.
sourceraw docstring

ref?clj/s

(ref? schemas a)
source

schema->hierarchyclj/s

(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.
sourceraw docstring

schema-attr?clj/s

(schema-attr? by-ident attr)
source

store->tuplesclj/s

(store->tuples attr-set)
source

unique-attr?clj/s

(unique-attr? by-ident attr)
source

unique-attrsclj/s

(unique-attrs schema tuples)
source

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

× close