pub struct ResultSet { /* private fields */ }Expand description
Query result set that can be either a row count or streaming data.
Implementations§
Source§impl ResultSet
impl ResultSet
Sourcepub fn metadata(&self) -> Option<&QueryMetadata>
pub fn metadata(&self) -> Option<&QueryMetadata>
Get the metadata if this is a streaming result.
Sourcepub fn into_iterator(self) -> Result<ResultSetIterator, QueryError>
pub fn into_iterator(self) -> Result<ResultSetIterator, QueryError>
Convert to an iterator over RecordBatches.
§Errors
Returns QueryError::NoResultSet if this is not a streaming result.
Sourcepub async fn fetch_all(self) -> Result<Vec<RecordBatch>, QueryError>
pub async fn fetch_all(self) -> Result<Vec<RecordBatch>, QueryError>
Fetch all remaining batches into memory.
§Errors
Returns QueryError if fetching fails or if this is not a streaming result.
Trait Implementations§
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