pub struct SelectResult {
pub columns: Vec<String>,
pub rows: Vec<Vec<Value>>,
}Expand description
Executes a parsed SelectQuery against the database and returns a
human-readable rendering of the result set (prettytable). Also returns
the number of rows produced, for the top-level status message.
Structured result of a SELECT: column names in projection order,
and each matching row as a Vec<Value> aligned with the columns.
Phase 5a introduced this so the public Connection / Statement
API has typed rows to yield; the existing execute_select that
returns pre-rendered text is now a thin wrapper on top.
Fields§
§columns: Vec<String>§rows: Vec<Vec<Value>>Auto Trait Implementations§
impl Freeze for SelectResult
impl RefUnwindSafe for SelectResult
impl Send for SelectResult
impl Sync for SelectResult
impl Unpin for SelectResult
impl UnsafeUnpin for SelectResult
impl UnwindSafe for SelectResult
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