mirror of
https://github.com/isar/rusqlite.git
synced 2025-01-20 07:10:51 +08:00
Merge pull request #1268 from gwenn/clear_bindings
Add Statement::clear_bindings
This commit is contained in:
commit
9644432135
@ -169,8 +169,10 @@ impl RawStatement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn clear_bindings(&self) -> c_int {
|
pub fn clear_bindings(&self) {
|
||||||
unsafe { ffi::sqlite3_clear_bindings(self.ptr) }
|
unsafe {
|
||||||
|
ffi::sqlite3_clear_bindings(self.ptr);
|
||||||
|
} // rc is always SQLITE_OK
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
@ -870,6 +870,11 @@ impl Statement<'_> {
|
|||||||
mem::swap(&mut stmt, &mut self.stmt);
|
mem::swap(&mut stmt, &mut self.stmt);
|
||||||
stmt
|
stmt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Reset all bindings
|
||||||
|
pub fn clear_bindings(&mut self) {
|
||||||
|
self.stmt.clear_bindings()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Debug for Statement<'_> {
|
impl fmt::Debug for Statement<'_> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user