Expand description
Persistence for nixfleet_state_machine::HostRolloutState.
Phase 4 (additive): provides the SQL row <-> in-memory struct mapping
and basic CRUD. Phase 6 wires this into the CP runtimeβs reducer-loop
applier; until then the old host_dispatch_state + host_rollout_state
tables continue to serve the old reconciler.
The probe map is serialised as a JSON column to avoid a side table; at ~5β20 probes per host the row stays well under any practical SQLite row-size limit, and the probe map is opaque to SQL queries by design.
StructsΒ§
FunctionsΒ§
- load_
inner π - parse_
rfc3339_ πoptional - parse_
rfc3339_ πrequired - policy_
from_ πdb - policy_
to_ πdb - row_
to_ πstate - state_
from_ πdb - state_
to_ πdb - upsert_
inner π