Method
__init__
(
self,
cursor_metadata: ResultMetaData,
chunks: Callable[
[Optional[int]], Iterator[Sequence[_InterimRowType[_R]]]
],
source_supports_scalars: bool = False,
raw: Optional[Result[Any]] = None,
dynamic_yield_per: bool = False,
context: Optional[Any] = None,
)
Source from the content-addressed store, hash-verified
| 1927 | """ |
| 1928 | |
| 1929 | def __init__( |
| 1930 | self, |
| 1931 | cursor_metadata: ResultMetaData, |
| 1932 | chunks: Callable[ |
| 1933 | [Optional[int]], Iterator[Sequence[_InterimRowType[_R]]] |
| 1934 | ], |
| 1935 | source_supports_scalars: bool = False, |
| 1936 | raw: Optional[Result[Any]] = None, |
| 1937 | dynamic_yield_per: bool = False, |
| 1938 | context: Optional[Any] = None, |
| 1939 | ): |
| 1940 | self._metadata = cursor_metadata |
| 1941 | self.chunks = chunks |
| 1942 | self._source_supports_scalars = source_supports_scalars |
| 1943 | self.raw = raw |
| 1944 | self.iterator = itertools.chain.from_iterable(self.chunks(None)) |
| 1945 | self.dynamic_yield_per = dynamic_yield_per |
| 1946 | self.context = context |
| 1947 | |
| 1948 | @_generative |
| 1949 | def yield_per(self, num: int) -> Self: |
Callers
nothing calls this directly
Tested by
no test coverage detected