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,
}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”
Implementations§
Source§impl RuntimeQueryResult
impl RuntimeQueryResult
Sourcepub fn dml_result(
query: String,
affected: u64,
statement_type: &'static str,
engine: &'static str,
) -> RuntimeQueryResult
pub fn dml_result( query: String, affected: u64, statement_type: &'static str, engine: &'static str, ) -> RuntimeQueryResult
Construct a result representing a DML operation (insert/update/delete).
Sourcepub fn ok_message(
query: String,
message: &str,
statement_type: &'static str,
) -> RuntimeQueryResult
pub fn ok_message( query: String, message: &str, statement_type: &'static str, ) -> RuntimeQueryResult
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,
) -> RuntimeQueryResult
pub fn ok_records( query: String, columns: Vec<String>, rows: Vec<Vec<(String, Value)>>, statement_type: &'static str, ) -> RuntimeQueryResult
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.
Trait Implementations§
Source§impl Clone for RuntimeQueryResult
impl Clone for RuntimeQueryResult
Source§fn clone(&self) -> RuntimeQueryResult
fn clone(&self) -> RuntimeQueryResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeQueryResult
impl RefUnwindSafe for RuntimeQueryResult
impl Send for RuntimeQueryResult
impl Sync for RuntimeQueryResult
impl Unpin for RuntimeQueryResult
impl UnsafeUnpin for RuntimeQueryResult
impl UnwindSafe for RuntimeQueryResult
Blanket Implementations§
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