MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / convert

Function convert

nodedb/src/control/planner/sql_plan_convert/convert.rs:90–100  ·  view source on GitHub ↗

Convert a list of SqlPlans to PhysicalTasks.

(
    plans: &[SqlPlan],
    tenant_id: TenantId,
    ctx: &ConvertContext,
)

Source from the content-addressed store, hash-verified

88
89/// Convert a list of SqlPlans to PhysicalTasks.
90pub fn convert(
91 plans: &[SqlPlan],
92 tenant_id: TenantId,
93 ctx: &ConvertContext,
94) -> crate::Result<Vec<PhysicalTask>> {
95 let mut tasks = Vec::new();
96 for plan in plans {
97 tasks.extend(convert_one(plan, tenant_id, ctx)?);
98 }
99 Ok(tasks)
100}
101
102pub(super) fn convert_one(
103 plan: &SqlPlan,

Callers 3

plan_with_nodedb_sqlMethod · 0.85
sql_to_physicalFunction · 0.85

Calls 2

convert_oneFunction · 0.85
extendMethod · 0.45

Tested by 1

sql_to_physicalFunction · 0.68