PostgREST-specific anomaly enrichment.
PostgREST error bodies carry extra fields — message, hint, code,
details — that callers want surfaced. This module decorates a
core.error anomaly with those fields under the :postgrest/* namespace
and, for a handful of well-known codes, refines the anomaly category.
PostgREST-specific anomaly enrichment. PostgREST error bodies carry extra fields — `message`, `hint`, `code`, `details` — that callers want surfaced. This module decorates a `core.error` anomaly with those fields under the `:postgrest/*` namespace and, for a handful of well-known codes, refines the anomaly category.
(enrich result)Decorates a core.error anomaly with PostgREST-specific fields when the
response body carries them, and upgrades the category for recognized
codes. Returns the input unchanged if it is not an anomaly or has no
database fields.
Decorates a `core.error` anomaly with PostgREST-specific fields when the response body carries them, and upgrades the category for recognized codes. Returns the input unchanged if it is not an anomaly or has no database fields.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |