ores.sql.outcome
Table of Contents
+#+updated: 2026-10-07
This page is the node for the ores.sql.outcome facet of the codegen
template library, part of the ores.sql technical space. Each archetype
below is documented, and holds its mustache source, in its own
linked page — this page is the facet-level summary and the routing
table to them.
1. Summary
One template: the message functions and the raiser the entity triggers
call, rendered from the outcome catalogue. outcome_catalogue profile.
2. The ores.sql.outcome facet
The SQL projection of the outcome catalogue model: each store outcome
becomes a function that composes its sentence, and one raiser maps the code to
its SQLSTATE. A trigger states the code and the field name and nothing else, so
the wording and the SQLSTATE exist once.
3. Archetypes
| Archetype | Description |
|---|---|
| ores.sql.outcome.outcome_functions_create | The message functions and ores_outcome_raise_fn, from the outcome catalogue. outcome_catalogue profile. |
4. See also
- ores.sql — the parent technical space's generated facet/archetype catalogue and shared Mustache conventions.
- SQL Technical Space — the domain-concept overview of this technical space.
- Codegen template library — the groups overview.