pub struct RuntimeQueryResult {
pub query: String,
pub mode: QueryMode,
pub statement: &'static str,
pub engine: &'static str,
pub result: UnifiedResult,
pub affected_rows: u64,
pub statement_type: &'static str,
pub bookmark: Option<String>,
pub notice: Option<String>,
}Fields§
§query: String§mode: QueryMode§statement: &'static str§engine: &'static str§result: UnifiedResult§affected_rows: u64§statement_type: &'static strHigh-level statement type: “select”, “insert”, “update”, “delete”, “create”, “drop”, “alter”
bookmark: Option<String>§notice: Option<String>Implementations§
Source§impl RuntimeQueryResult
impl RuntimeQueryResult
Sourcepub fn dml_result(
query: String,
affected: u64,
statement_type: &'static str,
engine: &'static str,
) -> Self
pub fn dml_result( query: String, affected: u64, statement_type: &'static str, engine: &'static str, ) -> Self
Construct a result representing a DML operation (insert/update/delete).
Sourcepub fn ok_message(
query: String,
message: &str,
statement_type: &'static str,
) -> Self
pub fn ok_message( query: String, message: &str, statement_type: &'static str, ) -> Self
Construct a result representing a DDL message (create/drop/alter).
Sourcepub fn ok_records(
query: String,
columns: Vec<String>,
rows: Vec<Vec<(String, Value)>>,
statement_type: &'static str,
) -> Self
pub fn ok_records( query: String, columns: Vec<String>, rows: Vec<Vec<(String, Value)>>, statement_type: &'static str, ) -> Self
Construct a multi-column record result for read-only meta commands (EXPLAIN ALTER, schema introspection, etc.). Each row is a Vec of (column_name, value) pairs in column order.
pub fn bookmark_token(&self) -> Option<&str>
Trait Implementations§
Source§impl AsRef<RuntimeQueryResult> for OwnedQueryResult
impl AsRef<RuntimeQueryResult> for OwnedQueryResult
Source§fn as_ref(&self) -> &RuntimeQueryResult
fn as_ref(&self) -> &RuntimeQueryResult
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for RuntimeQueryResult
impl Clone for RuntimeQueryResult
Auto Trait Implementations§
impl Forget for RuntimeQueryResult
impl Freeze for RuntimeQueryResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
PhantomData<String>: Freeze,
PhantomData<UnifiedRecord>: Freeze,
PhantomData<VectorOperatorStats>: Freeze,
impl Move for RuntimeQueryResult
impl RefUnwindSafe for RuntimeQueryResult
impl Send for RuntimeQueryResult
impl Sync for RuntimeQueryResult
impl Unpin for RuntimeQueryResult
impl UnsafeUnpin for RuntimeQueryResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<UnifiedRecord>: UnsafeUnpin,
PhantomData<VectorOperatorStats>: UnsafeUnpin,
impl UnwindSafe for RuntimeQueryResultwhere
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
Arc<Vec<Arc<str>>>: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<CronSchedule>: UnwindSafe,
HashMap<Arc<str>, Value>: UnwindSafe,
HashMap<String, MatchedNode>: UnwindSafe,
HashMap<String, MatchedEdge>: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request