pub struct QueryRowIterator<'a> { /* private fields */ }Expand description
Streaming query result that yields rows one at a time.
This type enables true streaming output for SELECT queries by applying projection on-the-fly and yielding projected rows through an iterator.
§Example
ⓘ
let mut iter = db.execute_sql_streaming("SELECT * FROM users")?;
while let Some(row) = iter.next_row()? {
println!("{:?}", row);
}Implementations§
Source§impl<'a> QueryRowIterator<'a>
impl<'a> QueryRowIterator<'a>
Sourcepub fn new(
inner: Box<dyn RowIterator + 'a>,
projection: Projection,
schema: Vec<ColumnMetadata>,
) -> Self
pub fn new( inner: Box<dyn RowIterator + 'a>, projection: Projection, schema: Vec<ColumnMetadata>, ) -> Self
Create a new streaming query result.
Sourcepub fn columns(&self) -> &[ColumnInfo]
pub fn columns(&self) -> &[ColumnInfo]
Returns column information for the result set.
Auto Trait Implementations§
impl<'a> Freeze for QueryRowIterator<'a>
impl<'a> !RefUnwindSafe for QueryRowIterator<'a>
impl<'a> !Send for QueryRowIterator<'a>
impl<'a> !Sync for QueryRowIterator<'a>
impl<'a> Unpin for QueryRowIterator<'a>
impl<'a> !UnwindSafe for QueryRowIterator<'a>
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