Add RowIter::rows_affected

This commit is contained in:
Steven Fackler 2023-03-27 19:24:48 -04:00
parent cf9747e3e5
commit 7d5962ef3f
No known key found for this signature in database
GPG Key ID: 408917B7276A5226

View File

@ -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<'_> {