MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _fetchmany_impl

Method _fetchmany_impl

lib/sqlalchemy/engine/result.py:1900–1906  ·  view source on GitHub ↗
(
        self, size: Optional[int] = None
    )

Source from the content-addressed store, hash-verified

1898 self._soft_close()
1899
1900 def _fetchmany_impl(
1901 self, size: Optional[int] = None
1902 ) -> List[_InterimRowType[Row[Unpack[TupleAny]]]]:
1903 if self._hard_closed:
1904 self._raise_hard_closed()
1905
1906 return list(itertools.islice(self.iterator, 0, size))
1907
1908
1909def null_result() -> IteratorResult[Any]:

Callers

nothing calls this directly

Calls 1

_raise_hard_closedMethod · 0.95

Tested by

no test coverage detected