hara.model.spec-postgres.form-deftype
pg-deftype-col-fn
added in 4.0
(pg-deftype-col-fn [col {:keys [type primary scope sql required unique enum ref], :as m}] mopts)formats the column on deftype
pg-deftype-enum-col
added in 4.0
(pg-deftype-enum-col col enum mopts)creates the enum column
pg-deftype-foreign-groups
added in 4.0
(pg-deftype-foreign-groups col-spec)collects foreign key groups
pg-deftype-foreigns
added in 4.0
(pg-deftype-foreigns sym col-spec mopts)creates foreign key constraints
pg-deftype-format-fragment
added in 4.0
(pg-deftype-format-fragment esym)parses the fragment contained by the symbol
pg-deftype-format-generated
added in 4.0
(pg-deftype-format-generated {:keys [type generated], :as attrs})processes generated columns
pg-deftype-format-raw
added in 4.0
(pg-deftype-format-raw spec {:keys [raw], :as msym})processes the type definition
pg-deftype-gen-constraint
added in 4.0
(pg-deftype-gen-constraint sym [group entries] mopts)generates a foreign key constraint
pg-deftype-partition
added in 4.0
(pg-deftype-partition params)(pg-deftype-partition params col-spec)creates partition by statement
pg-deftype-ref
added in 4.0
(pg-deftype-ref col {:keys [ns link current], :as m} mopts)creates the ref entry
pg-deftype-ref-current
added in 4.0
(pg-deftype-ref-current col {:keys [current column], :as m, :or {column :id}} {:keys [snapshot], :as mopts})creates the ref entry for
pg-deftype-ref-link
added in 4.0
(pg-deftype-ref-link col {:keys [ns link current column], :as m, :or {column :id}} {:keys [snapshot], :as mopts})creates the ref entry for
pg-deftype-spec-normalize
added in 4.0
(pg-deftype-spec-normalize col-spec)normalizes the spec, inferring groups