ordinary_app_event_family_dump.bend source
ordinary_app_event_family_dump.bend on the hub · documented module
import Baseimport ./ordinary_app_schema.bend as SchemaAppimport ./ordinary_app_composer.bend as Buildimport ./event_family_routing.bend as Routeimport ./world.bend as Wimport ./ordinary_app_event_family_runtime.bend as Appimport ./ordinary_app_dump.bend as Dumpimport ./ordinary_dump_filter.bend as Filterimport ./ordinary_app_observation_data.bend as DTOimport ./ordinary_app_registration_fields.bend as Records# Reuses the schema-derived dump while preserving the actual family/tick/readers.# Return the App with an optional filtered schema dump. Disabled debug bypasses# dump derivation; enabled uses trusted ordinary count/presentation adapters.# Preserve actual family, tick and registration owners without synchronizing or# acknowledging event readers; opaque value presentation remains caller supplied.def snapshot(~S:Data,~C:Type,~R:Type,~P:Data,~F:Type,~Owners:Type,~Rows:Data,~observe:W.World<S,C,R,P> -> W.World<S,C,R,P> & DTO.Observation<Rows>,~fold:Owners -> Owners & List<&2,Records.Fields<S>>,~count:C -> List<&2,W.Handle<S>> -> C & List<&2,Maybe<&2,U32>>,~components:C -> U32 -> C & List<&2,Maybe<&2,String>>,~resources:R -> R & List<&2,Maybe<&2,String>>,criteria:Filter.Filter<S>,value:App.Application<S,C,R,P,F,Owners,Rows,observe,fold>) -> App.Application<S,C,R,P,F,Owners,Rows,observe,fold> & Maybe<&2,Dump.Dump<S>>: match value: case App.Application{schema,Route.Runtime{world,family,tick},owners,recipe,debug}:App.returned(~S,~C,~R,~P,~F,~Owners,~Rows,~observe,~fold,~Maybe<&2,Dump.Dump<S>>,family,tick,Dump.schema_snapshot(~S,~C,~R,~P,~Owners,~Rows,~observe,~fold,~count,~components,~resources,criteria,SchemaApp.Application{schema,Build.Registered{world,owners,recipe,debug}}))