MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / rows

Method rows

couchbase/result.py:1213–1224  ·  view source on GitHub ↗

The rows which have been returned by the analytics query. .. note:: If using the *acouchbase* API be sure to use ``async for`` when looping over rows. Returns: Iterable: Either an iterable or async iterable.

(self)

Source from the content-addressed store, hash-verified

1211 return "AnalyticsResult:{}".format(self._request)
1212
1213 def rows(self):
1214 """The rows which have been returned by the analytics query.
1215
1216 .. note::
1217 If using the *acouchbase* API be sure to use ``async for`` when looping over rows.
1218
1219 Returns:
1220 Iterable: Either an iterable or async iterable.
1221 """
1222 if isinstance(self._request, AsyncAnalyticsRequest):
1223 return self.__aiter__()
1224 return self.__iter__()
1225
1226 def metadata(self):
1227 """The meta-data which has been returned by the analytics query.

Callers

nothing calls this directly

Calls 2

__aiter__Method · 0.95
__iter__Method · 0.95

Tested by

no test coverage detected