core: transaction support

This commit is contained in:
Pere Diaz Bou
2024-12-24 18:04:30 +01:00
parent a94d4ca8bc
commit aed14117c9
13 changed files with 334 additions and 55 deletions

View File

@@ -143,6 +143,11 @@ impl Cursor {
limbo_core::RowResult::Done => {
return Ok(None);
}
limbo_core::RowResult::Busy => {
return Err(
PyErr::new::<OperationalError, _>("Busy error".to_string()).into()
);
}
}
}
} else {
@@ -177,6 +182,11 @@ impl Cursor {
limbo_core::RowResult::Done => {
return Ok(results);
}
limbo_core::RowResult::Busy => {
return Err(
PyErr::new::<OperationalError, _>("Busy error".to_string()).into()
);
}
}
}
} else {