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

Method rows

couchbase/result.py:1160–1171  ·  view source on GitHub ↗

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

1158 self._request = n1ql_request
1159
1160 def rows(self):
1161 """The rows which have been returned by the query.
1162
1163 .. note::
1164 If using the *acouchbase* API be sure to use ``async for`` when looping over rows.
1165
1166 Returns:
1167 Iterable: Either an iterable or async iterable.
1168 """
1169 if isinstance(self._request, AsyncN1QLRequest):
1170 return self.__aiter__()
1171 return self.__iter__()
1172
1173 def execute(self):
1174 """Convenience method to execute the query.

Callers

nothing calls this directly

Calls 2

__aiter__Method · 0.95
__iter__Method · 0.95

Tested by

no test coverage detected