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