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

Method execute

crates/stdlib/src/_sqlite3.rs:1114–1123  ·  view source on GitHub ↗
(
            zelf: PyRef<Self>,
            sql: PyUtf8StrRef,
            parameters: OptionalArg<PyObjectRef>,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

1112
1113 #[pymethod]
1114 fn execute(
1115 zelf: PyRef<Self>,
1116 sql: PyUtf8StrRef,
1117 parameters: OptionalArg<PyObjectRef>,
1118 vm: &VirtualMachine,
1119 ) -> PyResult<PyRef<Cursor>> {
1120 let row_factory = zelf.row_factory.to_owned();
1121 let cursor = Cursor::new(zelf, row_factory, vm).into_ref(&vm.ctx);
1122 Cursor::execute(cursor, sql, parameters, vm)
1123 }
1124
1125 #[pymethod]
1126 fn executemany(

Callers

nothing calls this directly

Calls 15

newFunction · 0.85
executeFunction · 0.85
user_function_exceptionFunction · 0.85
db_lockMethod · 0.80
is_autocommitMethod · 0.80
begin_transactionMethod · 0.80
bind_parameter_countMethod · 0.80
bind_parametersMethod · 0.80
error_extendedMethod · 0.80
build_row_cast_mapMethod · 0.80
columns_descriptionMethod · 0.80
changesMethod · 0.80

Tested by

no test coverage detected