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)
| 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. |