mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-27 03:51:38 +08:00
Merge remote-tracking branch 'jgallagher/master' into vtab
This commit is contained in:
commit
bb6fa61e68
@ -156,6 +156,7 @@ fn path_to_cstring(p: &Path) -> Result<CString> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Name for a database within a SQLite connection.
|
/// Name for a database within a SQLite connection.
|
||||||
|
#[derive(Copy,Clone)]
|
||||||
pub enum DatabaseName<'a> {
|
pub enum DatabaseName<'a> {
|
||||||
/// The main database.
|
/// The main database.
|
||||||
Main,
|
Main,
|
||||||
|
@ -27,6 +27,7 @@ impl<'stmt> Rows<'stmt> {
|
|||||||
/// lifetime of the returned row is tied to the lifetime of `self`. This is a
|
/// 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`
|
/// "streaming iterator". For a more natural interface, consider using `query_map`
|
||||||
/// or `query_and_then` instead, which return types that implement `Iterator`.
|
/// or `query_and_then` instead, which return types that implement `Iterator`.
|
||||||
|
#[cfg_attr(feature = "cargo-clippy", allow(should_implement_trait))] // cannot implement Iterator
|
||||||
pub fn next<'a>(&'a mut self) -> Option<Result<Row<'a, 'stmt>>> {
|
pub fn next<'a>(&'a mut self) -> Option<Result<Row<'a, 'stmt>>> {
|
||||||
self.stmt
|
self.stmt
|
||||||
.and_then(|stmt| match stmt.step() {
|
.and_then(|stmt| match stmt.step() {
|
||||||
|
Loading…
Reference in New Issue
Block a user