diff --git a/src/lib.rs b/src/lib.rs index a7c7680..d500733 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -865,6 +865,14 @@ impl<'conn> fallible_iterator::FallibleIterator for Batch<'conn, '_> { } } +impl<'conn> Iterator for Batch<'conn, '_> { + type Item = Result, Error>; + + fn next(&mut self) -> Option { + fallible_iterator::FallibleIterator::next(self).transpose() + } +} + bitflags::bitflags! { /// Flags for opening SQLite database connections. /// See [sqlite3_open_v2](http://www.sqlite.org/c3ref/open.html) for details.