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 1a8926c commit 1d0be23Copy full SHA for 1d0be23
src/lib.rs
@@ -58,6 +58,27 @@ impl Connection {
58
Ok(ExecResult { res, ptr, types })
59
}
60
61
+
62
+ pub fn begin(&self) -> bool {
63
+ unsafe {
64
+ let status = xdb_begin(self.ptr);
65
+ status as u32 == xdb_errno_e_XDB_OK
66
+ }
67
68
69
+ pub fn commit(&self) -> bool {
70
71
+ let status = xdb_commit(self.ptr);
72
73
74
75
76
+ pub fn rollback(&self) -> bool {
77
78
+ let status = xdb_rollback(self.ptr);
79
80
81
82
83
84
#[derive(Debug)]
0 commit comments