hara.model.spec-postgres.form-deftype

pg-deftype

added in 4.0

(pg-deftype form)

creates a deftype statement

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-col-sql

added in 4.0

(pg-deftype-col-sql form sql)

formats the sql 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

added in 4.0

(pg-deftype-format form)

formats an input form

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-indexes

added in 4.0

(pg-deftype-indexes cols ttok)

create index statements

pg-deftype-partition

added in 4.0

(pg-deftype-partition params)(pg-deftype-partition params col-spec)

creates partition by statement

pg-deftype-primaries

added in 4.0

(pg-deftype-primaries schema-primary)

TODO

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-name

pg-deftype-spec-normalize

added in 4.0

(pg-deftype-spec-normalize col-spec)

normalizes the spec, inferring groups

pg-deftype-uniques

added in 4.0

(pg-deftype-uniques cols)

collect unique keys on deftype