pub struct ScannerResult { /* private fields */ }Expand description
Neutral query-result adapter backed directly by a storage scanner.
The adapter owns no SQL or executor policy. It only exposes the existing
row/typed-batch scanner contract through QueryResult.
Implementations§
Source§impl ScannerResult
impl ScannerResult
Trait Implementations§
Source§impl QueryResult for ScannerResult
impl QueryResult for ScannerResult
Source§fn scan(&self, dest: &mut [Value]) -> Result<(), Error>
fn scan(&self, dest: &mut [Value]) -> Result<(), Error>
Scans the current row into the provided values Read more
Source§fn close(&mut self) -> Result<(), Error>
fn close(&mut self) -> Result<(), Error>
Closes the result set and releases resources Read more
Source§fn last_error(&mut self) -> Option<Error>
fn last_error(&mut self) -> Option<Error>
Returns a pending error from the last
next() call, if any. Read moreSource§fn rows_affected(&self) -> i64
fn rows_affected(&self) -> i64
Returns the number of rows affected by an INSERT, UPDATE, or DELETE
Source§fn last_insert_id(&self) -> i64
fn last_insert_id(&self) -> i64
Returns the last inserted ID for an INSERT operation
Source§fn estimated_count(&self) -> Option<usize>
fn estimated_count(&self) -> Option<usize>
Returns an estimate of the total number of rows in the result. Read more
Source§fn supports_typed_batches(&self) -> bool
fn supports_typed_batches(&self) -> bool
Whether the result can yield decoded typed column batches without
constructing a row/value object for every result record. Read more
Source§fn typed_batch_fallback_reason(&self) -> Option<TypedBatchFallbackReason>
fn typed_batch_fallback_reason(&self) -> Option<TypedBatchFallbackReason>
If
supports_typed_batches() is false, return the best semantic reason. Read moreSource§fn next_typed_batch(&mut self) -> Result<Option<TypedColumnBatch>, Error>
fn next_typed_batch(&mut self) -> Result<Option<TypedColumnBatch>, Error>
Advance to the next typed column batch. Read more
Source§fn with_aliases(
self: Box<ScannerResult>,
aliases: HashMap<String, String, BuildHasherDefault<FxHasher>>,
) -> Box<dyn QueryResult>
fn with_aliases( self: Box<ScannerResult>, aliases: HashMap<String, String, BuildHasherDefault<FxHasher>>, ) -> Box<dyn QueryResult>
Sets column aliases for this result Read more
Source§fn columns_arc(&self) -> Option<CompactArc<Vec<String>>>
fn columns_arc(&self) -> Option<CompactArc<Vec<String>>>
Returns column names as Arc for zero-copy sharing Read more
Source§fn try_into_arc_rows(&mut self) -> Option<CompactArc<Vec<Row>>>
fn try_into_arc_rows(&mut self) -> Option<CompactArc<Vec<Row>>>
Try to extract all rows as
CompactArc<Vec<Row>> for zero-copy joins Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ScannerResult
impl !Sync for ScannerResult
impl !UnwindSafe for ScannerResult
impl Freeze for ScannerResult
impl Send for ScannerResult
impl Unpin for ScannerResult
impl UnsafeUnpin for ScannerResult
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