hara.model.spec-postgres.common

+pg-query-alias+

+pg-type-alias+

block-case-block

added in 4.0

(block-case-block value & args)

emits case block

block-do-block

added in 4.0

(block-do-block form)

initates do block

block-do-suppress

added in 4.0

(block-do-suppress form)

initates suppress block

block-loop-block

added in 4.0

(block-loop-block _ & forms)

emits loop block

block-while-block

added in 4.0

(block-while-block condition & forms)

emits while block

pg-array

added in 4.0

(pg-array [_ & arr] grammar mopts)

creates an array object

(common/pg-array ’(array 1 2 3 4 5) g/+grammar+ {}) => “ARRAY1,2,3,4,5

pg-base-token

added in 4.0

(pg-base-token tok schtok)

creates a base token

pg-current-module-link?

added in 4.1

(pg-current-module-link? current-module {:keys [module]})

checks whether a link points to the active module

pg-defblock

added in 4.0

(pg-defblock [_ sym array])

creates generic defblock

pg-defenum

added in 4.0

(pg-defenum [_ sym array])

defenum block

pg-defindex

added in 4.0

(pg-defindex [_ sym doc? attr? [table & cols] & body :as form])

defindex block

pg-defpolicy

added in 4.0

(pg-defpolicy [_ sym doc? attr? [table] body :as form])

defpolicy block

pg-defpublication

added in 4.0

(pg-defpublication [_ sym doc? attr? args body :as form])

defpublication block

pg-defsubscription

added in 4.0

(pg-defsubscription [_ sym doc? attr? [conn pub] body :as form])

defsubscription block

pg-deftrigger

added in 4.0

(pg-deftrigger [_ sym doc? attr? [table] body :as form])

TODO

pg-deftype-ref-name

added in 4.0

(pg-deftype-ref-name col {:keys [raw]})

gets the ref name

pg-do-assert

added in 4.0

(pg-do-assert [_ chk [tag data]] grammar mopts)

creates an assert form

pg-entry-literal

added in 4.0

(pg-entry-literal entry)

creates an entry literal

pg-entry-token

added in 4.0

(pg-entry-token entry)

gets the entry token

pg-format

added in 4.0

(pg-format [op sym & body])

formats a form, extracting static components

pg-full-token

added in 4.0

(pg-full-token tok schtok)

creates a full token (for types and enums)

pg-hydrate

added in 4.0

(pg-hydrate [op sym & body] grammar mopts)

hydrate function for top level entries

pg-hydrate-module-static

added in 4.0

(pg-hydrate-module-static module)

gets the static module

pg-invoke-typecast

added in 4.0

(pg-invoke-typecast form grammar mopts)

emits a typecast call

pg-linked

added in 4.0

(pg-linked sym grammar opts)

emits the linked symbol

pg-linked-token

added in 4.0

(pg-linked-token sym mopts)

gets the linked token given symbol

pg-map

added in 4.0

(pg-map m grammar mopts)

creates a postgres json object

pg-policy-format

added in 4.0

(pg-policy-format form)

TODO

pg-publication-format

added in 4.0

(pg-publication-format form)

formats publication

pg-resolve-entry

added in 4.1

(pg-resolve-entry link {:keys [book snapshot module lang], :as _mopts})

resolves a postgres link against the live module first, then the snapshot book, then vars

pg-set

added in 4.0

(pg-set e grammar mopts)

makes a set object

pg-string

added in 4.0

(pg-string s)

constructs a pg string

pg-subscription-format

added in 4.0

(pg-subscription-format form)

formats subscription

pg-sym-meta

added in 4.0

(pg-sym-meta sym)

returns the sym meta

pg-type-alias

added in 4.0

(pg-type-alias type)

gets the type alias

pg-typecast

added in 4.0

(pg-typecast [_ sym & args] grammar mopts)

creates a typecast

pg-uuid

added in 4.0

(pg-uuid u)

constructs a pg uuid