Expand description
The run engine’s parts around a Binding’s run (crate::run):
- the plan: which Bindings run, with every profile’s entry checked (
crate::run::plan); - the executor: runs a plan on a worker thread, cancellable through a
CancelToken, reporting what happens asRunEvents on a channel. The terminal UI,--log-format json, the log file andrun_results.jsonare consumers; whoever drives the run decides how events look (dispatchreplays them into aUi); - the
RunStore: where a run’s files go in the target path.
Structs§
- Cancel
Token - Asks a run to stop. Clones share the request; the first reason given sticks.
- Events
- Where a running Binding sends its events. Cheap to clone, and
Send: the executor’s worker and plugins’ stderr readers hold one each. - RunStore
- Where a run’s files go in the target path, for one Binding (
<report>/<binding>):compiled/(rendered SQL),run/(outputs andrun_results.json) andschema/(the schema snapshot drift is checked against).
Enums§
- Cancel
Reason - Why a run was asked to stop.
- RunEvent
- Something that happened during a run.