Functions working with the specomatic-db schema, extending the specomatic schema.
Functions working with the specomatic-db schema, extending the specomatic schema.
(default-fk-column schema etype)
Returns the default keyword for foreign key columns referencing entities of type etype
in the schema
.
Returns the default keyword for foreign key columns referencing entities of type `etype` in the `schema`.
(defaults-schema schema)
Given a schema
, returns a (partial) schema containing defaults.
Given a `schema`, returns a (partial) schema containing defaults.
(etype-from-simple-keyword schema simple-etype)
Given a schema
and simple-etype
returns a qualified entity type keyword.
Given a `schema` and `simple-etype` returns a qualified entity type keyword.
Returns a map of fields to field definitions, with the entity type assoc'd to the :etype key, in schema
(memoized).
Returns a map of fields to field definitions, with the entity type assoc'd to the :etype key, in `schema` (memoized).
(etypes-by-simple-keywords* schema)
Given a schema
, returns a map of simple keywords by qualified keywords representing entity types.
Given a `schema`, returns a map of simple keywords by qualified keywords representing entity types.
(full-schema schema overrides)
Given a schema
returned from specomatic.registry/schema
spec and optionally overrides
to override defaults,
returns an schema enriched with database-specific defaults.
Given a `schema` returned from `specomatic.registry/schema` spec and optionally `overrides` to override defaults, returns an schema enriched with database-specific defaults.
(persistent-field-defs schema etype)
Returns the persistent field defs for the etype
in the schema
.
Returns the persistent field defs for the `etype` in the `schema`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close