pub trait ResultSet {
// Required methods
fn meta_data(&self) -> Result<Box<dyn ResultSetMetaData>>;
fn next(&mut self) -> bool;
fn get_bool(&self, i: u64) -> Result<Option<bool>>;
fn get_i8(&self, i: u64) -> Result<Option<i8>>;
fn get_i16(&self, i: u64) -> Result<Option<i16>>;
fn get_i32(&self, i: u64) -> Result<Option<i32>>;
fn get_i64(&self, i: u64) -> Result<Option<i64>>;
fn get_f32(&self, i: u64) -> Result<Option<f32>>;
fn get_f64(&self, i: u64) -> Result<Option<f64>>;
fn get_string(&self, i: u64) -> Result<Option<String>>;
fn get_bytes(&self, i: u64) -> Result<Option<Vec<u8>>>;
}
Expand description
An iterator over the mapped resulting rows of a query.
F
is used to transform the streaming iterator into a standard iterator.
Result set from executing a query against a statement
Required Methods§
Sourcefn meta_data(&self) -> Result<Box<dyn ResultSetMetaData>>
fn meta_data(&self) -> Result<Box<dyn ResultSetMetaData>>
get meta data about this result set
Sourcefn next(&mut self) -> bool
fn next(&mut self) -> bool
Move the cursor to the next available row if one exists and return true if it does