Add RowIter::rows_affected
This commit is contained in:
parent
cf9747e3e5
commit
7d5962ef3f
@ -17,6 +17,13 @@ impl<'a> RowIter<'a> {
|
||||
it: Box::pin(stream),
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the number of rows affected by the query.
|
||||
///
|
||||
/// This function will return `None` until the iterator has been exhausted.
|
||||
pub fn rows_affected(&self) -> Option<u64> {
|
||||
self.it.rows_affected()
|
||||
}
|
||||
}
|
||||
|
||||
impl FallibleIterator for RowIter<'_> {
|
||||
|
Loading…
Reference in New Issue
Block a user