pub struct ExecRequest<'a> {
pub plan: &'a LogicalPlan,
pub params: &'a BTreeMap<String, Value>,
pub query_text: &'a str,
pub principal: Option<&'a str>,
pub batch_commit: Option<&'a dyn BatchCommit>,
pub plan_metrics: Option<&'a dyn PlanMetricsSink>,
}Expand description
The plan, parameters, source text, and authenticated principal shared by
every execution entry point. query_text is the source text of the
statement (exposed as SHOW TRANSACTIONS’ currentQuery column); the
statement’s CIP-150 version preamble rides on the plan. principal is the
connection’s authenticated principal (ADR-0273), read by
dbms.showCurrentUser; None reports the documented placeholder.
Copy: every field is a reference (or an optional reference) — the
commit path reuses the caller’s request with its own batch-commit
sink attached, without rebuilding the bundle field by field.
Fields§
§plan: &'a LogicalPlan§params: &'a BTreeMap<String, Value>§query_text: &'a str§principal: Option<&'a str>§batch_commit: Option<&'a dyn BatchCommit>ADR-0210: per-batch durable-commit sink for CALL { … } IN TRANSACTIONS; None keeps the accumulate-to-statement-end
behavior.
plan_metrics: Option<&'a dyn PlanMetricsSink>ADR-0344 phase 2: the PROFILE metrics sink for the statement’s own
clauses; None on every non-PROFILE run. The dispatch loop
records one entry per clause operator; nested execution strips it.
Implementations§
Source§impl<'a> ExecRequest<'a>
impl<'a> ExecRequest<'a>
Sourcepub fn new(
plan: &'a LogicalPlan,
params: &'a BTreeMap<String, Value>,
query_text: &'a str,
) -> Self
pub fn new( plan: &'a LogicalPlan, params: &'a BTreeMap<String, Value>, query_text: &'a str, ) -> Self
The None-default request: no principal, no batch-commit sink, no PROFILE sink — the statement’s own execution with none of the optional carriers. The one construction site for the defaults, so a new optional field lands here, not at every caller.