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

Method fetchall

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

Source from the content-addressed store, hash-verified

1915
1916 #[pymethod]
1917 fn fetchall(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
1918 let mut list = vec![];
1919 while let PyIterReturn::Return(row) = Self::next(zelf, vm)? {
1920 list.push(row);
1921 }
1922 Ok(list)
1923 }
1924
1925 #[pymethod]
1926 fn close(&self, vm: &VirtualMachine) -> PyResult<()> {

Calls 2

nextFunction · 0.85
pushMethod · 0.45