Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_db
Method · 0.80
Err
Class · 0.50
check_thread
Method · 0.45
lock
Method · 0.45
as_mut
Method · 0.45
to_owned
Method · 0.45
reset
Method · 0.45
take
Method · 0.45
Tested by
no test coverage detected