Struct QueryResult

Source
pub struct QueryResult {
    pub rows: Vec<HashMap<String, Value>>,
    pub column_names: Vec<String>,
    pub notices: Vec<Notice>,
    pub row_count: i32,
    pub col_count: i32,
    pub notice_count: usize,
    pub status: ExecStatusType,
    pub elapsed_time_ms: u64,
}
Expand description

Contains the complete result of a query execution.

This struct provides access to all aspects of a query result, including rows, columns, notices, and execution statistics.

Fields§

§rows: Vec<HashMap<String, Value>>

Rows returned by the query, represented as maps of column names to values.

§column_names: Vec<String>

Names of the columns in the result set.

§notices: Vec<Notice>

Notices generated during query execution.

§row_count: i32

Number of rows in the result set.

§col_count: i32

Number of columns in the result set.

§notice_count: usize

Number of notices generated during query execution.

§status: ExecStatusType

Status of the query execution.

§elapsed_time_ms: u64

Elapsed time for the query execution in milliseconds.

Trait Implementations§

Source§

impl Debug for QueryResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.