mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-06-27 05:51:32 +00:00
Always succeed when calling Statement::cursor
This commit is contained in:
@ -52,6 +52,6 @@ impl<'l> Cursor<'l> {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn new<'l>(statement: Statement<'l>) -> Result<Cursor<'l>> {
|
||||
Ok(Cursor { state: None, values: None, statement: statement })
|
||||
pub fn new<'l>(statement: Statement<'l>) -> Cursor<'l> {
|
||||
Cursor { state: None, values: None, statement: statement }
|
||||
}
|
||||
|
@ -68,7 +68,7 @@
|
||||
//!
|
||||
//! let mut cursor = connection.prepare("
|
||||
//! SELECT * FROM users WHERE age > ?
|
||||
//! ").unwrap().cursor().unwrap();
|
||||
//! ").unwrap().cursor();
|
||||
//!
|
||||
//! cursor.bind(&[Value::Integer(50)]).unwrap();
|
||||
//!
|
||||
|
@ -103,7 +103,7 @@ impl<'l> Statement<'l> {
|
||||
|
||||
/// Upgrade to a cursor.
|
||||
#[inline]
|
||||
pub fn cursor(self) -> Result<Cursor<'l>> {
|
||||
pub fn cursor(self) -> Cursor<'l> {
|
||||
::cursor::new(self)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user