hara.model.spec-postgres.common
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-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-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-do-assert
added in 4.0
(pg-do-assert [_ chk [tag data]] grammar mopts)creates an assert form
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-link-symbol
added in 4.1
(pg-link-symbol {:keys [module id]})creates a fully qualified symbol for a link
pg-linked-token
added in 4.0
(pg-linked-token sym mopts)gets the linked token given symbol
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