MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / _get_next_row

Method _get_next_row

txcouchbase/analytics.py:80–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 return self
79
80 def _get_next_row(self):
81 if self._done_streaming is True:
82 return
83
84 row = next(self._streaming_result)
85 if isinstance(row, PycbcCoreException):
86 raise ErrorMapper.build_exception(row)
87
88 # should only be None once query request is complete and _no_ errors found
89 if row is None:
90 raise StopIteration
91
92 return self.serializer.deserialize(row)
93
94 def __next__(self):
95 return stream_next(self)

Callers

nothing calls this directly

Calls 2

build_exceptionMethod · 0.80
deserializeMethod · 0.45

Tested by

no test coverage detected