We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3158e commit 763cf9fCopy full SHA for 763cf9f
.gitignore
@@ -2,3 +2,5 @@
2
*.so
3
__pycache__/
4
.vscode
5
+.python-version
6
+dist
src/transaction.rs
@@ -384,4 +384,17 @@ impl Transaction {
384
Ok(Python::with_gil(|py| timestamp.to_object(py)))
385
})
386
}
387
+
388
+ fn rollback<'p>(&self, py: Python<'p>) -> PyResult<&'p PyAny> {
389
+ let inner = self.inner.clone();
390
+ future_into_py(py, async move {
391
+ inner
392
+ .write()
393
+ .await
394
+ .rollback()
395
396
+ .map_err(to_py_execption)?;
397
+ Ok(Python::with_gil(|py| py.None()))
398
+ })
399
+ }
400
0 commit comments