mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-04 08:54:20 +01:00
Merge 'reset statement before executing in rust binding' from Pedro Muniz
Closes #1426 Closes #1436
This commit is contained in:
@@ -161,6 +161,10 @@ impl Statement {
|
||||
}
|
||||
|
||||
pub async fn execute(&mut self, params: impl IntoParams) -> Result<u64> {
|
||||
{
|
||||
// Reset the statement before executing
|
||||
self.inner.lock().unwrap().reset();
|
||||
}
|
||||
let params = params.into_params()?;
|
||||
match params {
|
||||
params::Params::None => (),
|
||||
@@ -279,6 +283,7 @@ impl Rows {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Row {
|
||||
values: Vec<limbo_core::OwnedValue>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user