Liking cljdoc? Tell your friends :D

specomatic-db.schema

Functions working with the specomatic-db schema, extending the specomatic schema.

Functions working with the specomatic-db schema, extending the specomatic schema.
raw docstring

default-fk-columnclj

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

defaults-schemaclj

(defaults-schema schema)

Given a schema, returns a (partial) schema containing defaults.

Given a `schema`, returns a (partial) schema containing defaults.
sourceraw docstring

etype-from-simple-keywordclj

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

etypes-by-simple-keywordsclj

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

etypes-by-simple-keywords*clj

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

full-schemaclj

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

persistent-field-defsclj

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

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

× close