pub struct ResultSet { /* private fields */ }Expand description
A fully materialized, owned query result.
Unlike DuckResult, a ResultSet holds no FFI
handles: it is Send, Sync, and Clone, and can be moved across threads or
returned from a blocking task. Build one with
DuckResult::materialize.
Implementations§
Source§impl ResultSet
impl ResultSet
Sourcepub fn changes(&self) -> u64
pub fn changes(&self) -> u64
Returns the number of rows changed by the query that produced this result.
0 for SELECT statements.
Sourcepub fn column_names(&self) -> &[Box<str>]
pub fn column_names(&self) -> &[Box<str>]
Returns the column names in result order.
Sourcepub fn column_schema(&self) -> &[TypeInfo]
pub fn column_schema(&self) -> &[TypeInfo]
Returns the lossless TypeInfo of every column,
in result order — DECIMAL precision, nested list/struct/map/union shape,
enum labels, and so on, preserved from the query result.
Sourcepub fn statement_type(&self) -> StatementType
pub fn statement_type(&self) -> StatementType
The kind of statement that produced this result (SELECT, INSERT, …).
Sourcepub fn result_type(&self) -> ResultType
pub fn result_type(&self) -> ResultType
What kind of output this result is (rows, changed-row count, nothing).
Trait Implementations§
Source§impl IntoIterator for ResultSet
impl IntoIterator for ResultSet
Auto Trait Implementations§
impl Freeze for ResultSet
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnsafeUnpin for ResultSet
impl UnwindSafe for ResultSet
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