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

Method close

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

Source from the content-addressed store, hash-verified

1086
1087 #[pymethod]
1088 fn close(&self, vm: &VirtualMachine) -> PyResult<()> {
1089 self.check_thread(vm)?;
1090 self.drop_db();
1091 Ok(())
1092 }
1093
1094 fn is_closed(&self) -> bool {
1095 self.db.lock().is_none()

Callers 1

__exit__Method · 0.45

Calls 8

drop_dbMethod · 0.80
ErrClass · 0.50
check_threadMethod · 0.45
lockMethod · 0.45
as_mutMethod · 0.45
to_ownedMethod · 0.45
resetMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected