Skip to main content

Module persist

Module persist 

Source
Expand description

The persister seam: a form’s write is a handler, resolved at boot from a string key on the descriptor.

Every form gets a [DefaultPersister] (the descriptor-driven single-statement insert/update) unless it names a registered Persister, letting an entity that needs a custom, atomic, multi-statement write (a tree’s ancestor closure, say) plug in without a hand-written CRUD handler. A persister is a registered domain write service, the same category as a picker source.

Structs§

MoveTo
A move under another parent, as Persister::move_to receives it.
PersisterReg
A registered persister: its dotted vendor.name key and the handler.

Enums§

DeleteError
Why a delete failed.
SaveError
Why a persist failed.

Traits§

Persister
Replaces the default insert/update for one form. An implementor owns its own transaction when the write is multi-statement. rec holds the validated submission plus anything the listeners added; rec.to_text_map() gives the all-text shape if that suits an implementation better.

Type Aliases§

PersisterRegistry
The persister registry, keyed by name.