Skip to main content

execute_plan_document

Function execute_plan_document 

Source
pub fn execute_plan_document(
    project_root: &Path,
    doc: &PlanDocument,
    options: &ExecuteOptions,
    context: Option<&ContextConfig>,
) -> Result<ExecutionResult, ExecutionError>
Expand description

Run a plan against the project on disk.

Reads the schema at <root>/rustio.schema.json, builds a ProjectView, calls plan_execution, verifies preconditions against the live filesystem, and applies the change set atomically. No migrations are executed — the user runs rustio migrate apply afterwards.