Liking cljdoc? Tell your friends :D
Clojure only.

specomatic-db.registry

Functions that work with the clojure.spec registry (via specomatic.registry) to generate the specomatic-db schema and config.

Functions that work with the clojure.spec registry (via `specomatic.registry`) to generate the specomatic-db schema and config.
raw docstring

configclj

(config namespaces)
(config namespaces base-config)
(config namespaces base-config only)

Returns the full schema for the namespaces as a map of entity types to their definitions. Optionally restricted to a sequence of entities only. The base-config has the same shape as the result. :ac-predicates and :user-entity are for access control, the :schema part contains overrides for the schema. Shape of result: {:ac-predicates {:predicate/name {::my-namespace.entity honeysql-query}} :schema {::my.namespace.entity {:field-defs map of fields to fields' specs :id-field id field for the entity :required-fields set of required fields} ::my.namespace.entity2 ... } :user-entity ::my.namespace.user}

Returns the full schema for the `namespaces` as a map of entity types to their definitions.
Optionally restricted to a sequence of entities `only`.
The `base-config` has the same shape as the result. `:ac-predicates` and `:user-entity` are for access control,
the `:schema` part contains overrides for the schema.
Shape of result:
{:ac-predicates {:predicate/name {::my-namespace.entity   honeysql-query}}
 :schema        {::my.namespace.entity {:field-defs             map of fields to fields' specs
                                        :id-field               id field for the entity
                                        :required-fields        set of required fields}
          ::my.namespace.entity2 ... }
 :user-entity   ::my.namespace.user}
sourceraw docstring

full-schemaclj

(full-schema namespaces overrides)
(full-schema namespaces overrides only)

Returns the full schema for the namespaces as a map of entity types to their definitions. Optionally restricted to a sequence of entities only. Specific entity and field definitions may by overridden by an overrides map in the same shape as the schema. Shape of result: {::my.namespace.entity {:field-defs map of fields to fields' specs :id-field id field for the entity :required-fields set of required fields} ::my.namespace.entity2 ... }

Returns the full schema for the `namespaces` as a map of entity types to their definitions.
Optionally restricted to a sequence of entities `only`.
Specific entity and field definitions may by overridden by an `overrides` map in the same shape as the schema.
Shape of result:
{::my.namespace.entity  {:field-defs       map of fields to fields' specs
                         :id-field         id field for the entity
                         :required-fields  set of required fields}
::my.namespace.entity2 ... }
sourceraw docstring

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

× close