MCPcopy Index your code
hub / github.com/RustPython/RustPython / rollback

Method rollback

crates/stdlib/src/_sqlite3.rs:1104–1111  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1102
1103 #[pymethod]
1104 fn rollback(&self, vm: &VirtualMachine) -> PyResult<()> {
1105 let db = self.db_lock(vm)?;
1106 if !db.is_autocommit() {
1107 db._exec(b"ROLLBACK\0", vm)
1108 } else {
1109 Ok(())
1110 }
1111 }
1112
1113 #[pymethod]
1114 fn execute(

Calls 3

db_lockMethod · 0.80
is_autocommitMethod · 0.80
_execMethod · 0.45