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

Method rows

couchbase/result.py:1297–1308  ·  view source on GitHub ↗

The rows which have been returned by the view 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

1295 return "ViewResult:{}".format(self._request)
1296
1297 def rows(self):
1298 """The rows which have been returned by the view query.
1299
1300 .. note::
1301 If using the *acouchbase* API be sure to use ``async for`` when looping over rows.
1302
1303 Returns:
1304 Iterable: Either an iterable or async iterable.
1305 """
1306 if isinstance(self._request, AsyncViewRequest):
1307 return self.__aiter__()
1308 return self.__iter__()
1309
1310 def metadata(self):
1311 """The meta-data which has been returned by the view query.

Callers 15

txn_logicMethod · 0.45
test_query_timeoutMethod · 0.45
_try_until_timeoutMethod · 0.45
test_http_query_opMethod · 0.45
test_http_query_opMethod · 0.45
assert_search_rowsMethod · 0.45

Calls 2

__aiter__Method · 0.95
__iter__Method · 0.95

Tested by 11

test_query_timeoutMethod · 0.36
test_http_query_opMethod · 0.36
test_http_query_opMethod · 0.36
_check_row_countMethod · 0.36
_check_row_countMethod · 0.36