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

Method executescript

crates/stdlib/src/_sqlite3.rs:1138–1149  ·  view source on GitHub ↗
(
            zelf: PyRef<Self>,
            script: PyUtf8StrRef,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

1136
1137 #[pymethod]
1138 fn executescript(
1139 zelf: PyRef<Self>,
1140 script: PyUtf8StrRef,
1141 vm: &VirtualMachine,
1142 ) -> PyResult<PyRef<Cursor>> {
1143 let row_factory = zelf.row_factory.to_owned();
1144 Cursor::executescript(
1145 Cursor::new(zelf, row_factory, vm).into_ref(&vm.ctx),
1146 script,
1147 vm,
1148 )
1149 }
1150
1151 // TODO: Make it build without clippy::manual_c_str_literals
1152 #[pymethod]

Calls 12

newFunction · 0.85
check_cursor_validMethod · 0.80
db_lockMethod · 0.80
sql_limitMethod · 0.80
implicit_commitMethod · 0.80
step_row_else_doneMethod · 0.80
to_ownedMethod · 0.45
into_refMethod · 0.45
byte_lenMethod · 0.45
to_cstringMethod · 0.45
as_ptrMethod · 0.45
prepareMethod · 0.45