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§
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnwindSafe for QueryResult
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