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