pub struct QueryResult {
pub columns: Vec<String>,
pub rows: Vec<Vec<Value>>,
pub stats: QueryStats,
pub effect: StatementEffect,
}Fields§
§columns: Vec<String>§rows: Vec<Vec<Value>>§stats: QueryStats§effect: StatementEffectThe engine’s truthful write effect for this statement (ADR-0402
Decision 2), named once at the statement boundary from two execution
facts: whether the statement’s plan holds a mutation operator (the one
plan walk, plan_mutates_store) and whether any change reached the
write redo since the statement’s entry reset. A read therefore carries
StatementEffect::None. Results built inside a statement (a
clause’s rows, a nested body’s output) go through the crate-private
QueryResult::intermediate and never spell this field: the boundary is
the one place that names it. See StatementEffect for why neither
the plan’s query type nor the mutation counters can answer this.
Implementations§
Source§impl QueryResult
impl QueryResult
Sourcepub fn finished(
columns: Vec<String>,
rows: Vec<Vec<Value>>,
stats: QueryStats,
effect: StatementEffect,
) -> Self
pub fn finished( columns: Vec<String>, rows: Vec<Vec<Value>>, stats: QueryStats, effect: StatementEffect, ) -> Self
A result a statement boundary finished, its effect named by the
execution that produced it — the construction for a crate outside this
one (the ADR-0209 batched bulk write is its own statement boundary and
runs no clause loop). The effect always comes from
StatementEffect’s own constructors, so a caller never spells a
zero state at the construction site.