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

Method call

crates/stdlib/src/_sqlite3.rs:927–937  ·  view source on GitHub ↗
(zelf: &Py<Self>, args: Self::Args, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

925 type Args = FuncArgs;
926
927 fn call(zelf: &Py<Self>, args: Self::Args, vm: &VirtualMachine) -> PyResult {
928 let _ = zelf.db_lock(vm)?;
929
930 let (sql,): (PyUtf8StrRef,) = args.bind(vm)?;
931
932 if let Some(stmt) = Statement::new(zelf, sql, vm)? {
933 Ok(stmt.into_ref(&vm.ctx).into())
934 } else {
935 Ok(vm.ctx.none())
936 }
937 }
938 }
939
940 impl Initializer for Connection {

Callers 10

func_callbackMethod · 0.45
step_callbackMethod · 0.45
collation_callbackMethod · 0.45
authorizer_callbackMethod · 0.45
trace_callbackMethod · 0.45
progress_callbackMethod · 0.45
_adaptFunction · 0.45
cursorMethod · 0.45
iterdumpMethod · 0.45
nextMethod · 0.45

Calls 5

newFunction · 0.85
db_lockMethod · 0.80
noneMethod · 0.80
bindMethod · 0.45
into_refMethod · 0.45

Tested by

no test coverage detected