Struct rusqlite::Rows [] [src]

pub struct Rows<'stmt> { /* fields omitted */ }

An handle for the resulting rows of a query.

Methods

impl<'stmt> Rows<'stmt>
[src]

Attempt to get the next row from the query. Returns Some(Ok(Row)) if there is another row, Some(Err(...)) if there was an error getting the next row, and None if all rows have been retrieved.

Note

This interface is not compatible with Rust's Iterator trait, because the lifetime of the returned row is tied to the lifetime of self. This is a "streaming iterator". For a more natural interface, consider using query_map or query_and_then instead, which return types that implement Iterator.

Trait Implementations

impl<'stmt> Drop for Rows<'stmt>
[src]

A method called when the value goes out of scope. Read more