Liking cljdoc? Tell your friends :D
Clojure only.

pgmalli.impl.render

Facts -> malli schemas.

registry returns {:registry {name schema} :unrendered [fact] :skipped [fact]} with :pg.<schema>/<type> enum types and domains (a domain CHECK outside the patterns is [:pg/check-value expr], evaluated over the value as :VALUE) :pg.<schema>/<table> a valid row as read from the database A row schema is [:map ...] alone, or [:and [:map ...] checks...] when the table has constraints across columns: [:multi ...] for branches on one column's value, [:or ...] of map fragments, and [:pg/check expr] for everything else pgmalli.impl.eval can evaluate; bytea columns with a length CHECK are [:pg/bytes {:min :max}]. Insert schemas are derived from row schemas when a registry is loaded (pgmalli.impl.runtime).

Properties: on the map :pg/table ("schema.table"), :pg/primary-key, :pg/unique ({:columns} each, :nulls-distinct false for NULLS NOT DISTINCT) and :pg/foreign-keys ({:columns :table :to} each, tables schema-qualified, :match :full for MATCH FULL); on columns :pg/type :pg/default :pg/identity :pg/generated :pg/constraint, and malli's :default for literal defaults.

Identifiers that are not plain names become string keys, keeping the output readable EDN. overrides is {constraint-name schema-or-{:skip reason}}.

Facts -> malli schemas.

registry returns {:registry {name schema} :unrendered [fact] :skipped [fact]} with
  :pg.<schema>/<type>     enum types and domains (a domain CHECK outside the patterns is
                          [:pg/check-value expr], evaluated over the value as :VALUE)
  :pg.<schema>/<table>    a valid row as read from the database
A row schema is [:map ...] alone, or [:and [:map ...] checks...] when the table has constraints
across columns: [:multi ...] for branches on one column's value, [:or ...] of map fragments,
and [:pg/check expr] for everything else pgmalli.impl.eval can evaluate; bytea columns with a
length CHECK are [:pg/bytes {:min :max}]. Insert schemas are
derived from row schemas when a registry is loaded (pgmalli.impl.runtime).

Properties: on the map :pg/table ("schema.table"), :pg/primary-key, :pg/unique
({:columns} each, :nulls-distinct false for NULLS NOT DISTINCT) and :pg/foreign-keys
({:columns :table :to} each, tables schema-qualified, :match :full for MATCH FULL); on columns :pg/type
:pg/default :pg/identity :pg/generated :pg/constraint, and malli's :default for literal defaults.

Identifiers that are not plain names become string keys, keeping the output readable EDN.
overrides is {constraint-name schema-or-{:skip reason}}.
raw docstring

ident-keyclj

(ident-key s)

Column names as row keys: keywords for plain identifiers, strings otherwise.

Column names as row keys: keywords for plain identifiers, strings otherwise.
sourceraw docstring

registryclj

(registry facts)
(registry facts overrides)

facts -> {:registry :unrendered :skipped}.

facts -> {:registry :unrendered :skipped}.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close