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

Method fetchone

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

Source from the content-addressed store, hash-verified

1876
1877 #[pymethod]
1878 fn fetchone(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult {
1879 Self::next(zelf, vm).map(|x| match x {
1880 PyIterReturn::Return(row) => row,
1881 PyIterReturn::StopIteration(_) => vm.ctx.none(),
1882 })
1883 }
1884
1885 #[pymethod]
1886 fn fetchmany(

Calls 3

nextFunction · 0.85
noneMethod · 0.80
mapMethod · 0.45