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

Method drop_db

crates/stdlib/src/_sqlite3.rs:981–983  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

979 #[pyclass(with(Constructor, Callable, Initializer), flags(BASETYPE, HAS_WEAKREF))]
980 impl Connection {
981 fn drop_db(&self) {
982 self.db.lock().take();
983 }
984
985 fn reset_factories(&self, vm: &VirtualMachine) {
986 let default_text_factory = PyStr::class(&vm.ctx).to_owned().into_object();

Callers 2

initMethod · 0.80
closeMethod · 0.80

Calls 2

takeMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected