Skip to main content

QueryResult

Struct QueryResult 

Source
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: StatementEffect

The 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

Source

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.

Auto Trait Implementations§

§

impl Forget for QueryResult

§

impl Freeze for QueryResult

§

impl Move for QueryResult

§

impl RefUnwindSafe for QueryResult

§

impl Send for QueryResult

§

impl Sync for QueryResult

§

impl Unpin for QueryResult

§

impl UnsafeUnpin for QueryResult

§

impl UnwindSafe for QueryResult

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V