Skip to main content

Module effects

Module effects 

Source
Expand description

Transaction-local outbox composition without selecting a database vendor.

Structs§

EffectAdapter
Binds app-declared inserts to each domain write transaction. Read-only operations never emit effects, and domain result indices remain unchanged.
ResourceBinding
Maps an app’s logical entity label to its declared storage entity.

Enums§

ResourceIdentity 🔒

Functions§

resource_identity 🔒
Requires every domain write to this entity to identify the same record. Broad updates, ambiguous predicates and multi-record batches remain aggregate actions.
transact_with_effects
Commits durable outbox inserts with the original domain transaction while keeping all result positions relative to the caller’s original step list.
transact_with_resource_effects
Resolves a single created resource inside the same transaction as its outbox. Batch actions retain their declared aggregate resource instead of choosing an arbitrary record identity.
validate_resource_binding 🔒
Validates the resource declaration on both public composition entry points.