MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / execute_plan

Function execute_plan

atomic-repository/src/query_plan.rs:168–172  ·  view source on GitHub ↗

Execute a query plan against this working copy's registered desired view. The `kg_search` step reads VCS nodes and source content through that view's closure; other steps keep their existing scope.

(repo: &Repository, plan: &QueryPlan)

Source from the content-addressed store, hash-verified

166/// The `kg_search` step reads VCS nodes and source content through that
167/// view's closure; other steps keep their existing scope.
168pub fn execute_plan(repo: &Repository, plan: &QueryPlan) -> Result<PlanResult, RepositoryError> {
169 let working_copy = repo.require_working_copy_id()?;
170 let view = repo.desired_view_name(working_copy)?;
171 execute_plan_on_view(repo, &view, plan)
172}
173
174/// Execute a query plan against a specific view's recorded closure.
175pub fn execute_plan_on_view(

Calls 3

execute_plan_on_viewFunction · 0.85
desired_view_nameMethod · 0.80