Views
- class couchbase.views.ViewErrorMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
What a view query does when a node reports an error.
Warning
couchbase.bucket.ViewErrorModeis deprecated, and will be removed in a future release. ImportViewErrorModefromcouchbase.views.CONTINUEreturns the rows the other nodes sent;STOPends the query.- CONTINUE = 'continue'
- STOP = 'stop'
- class couchbase.views.ViewMetaData(record: _ViewMetaDataRecord)
The metadata the view service returned with a view query’s rows.
- class couchbase.views.ViewOrdering(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The order, by key, a view query returns its rows in.
Warning
couchbase.bucket.ViewOrderingis deprecated, and will be removed in a future release. ImportViewOrderingfromcouchbase.views.- ASCENDING = 'false'
- DESCENDING = 'true'
- class couchbase.views.ViewRow(key: Any = None, id: str | None = None, value: Any = None, document: Any = None)
One row of a view query.
- key
The key the view’s map function emitted.
- Type:
Any
- value
The value the view’s map function emitted, or the reduced value.
- Type:
Any
- document
The emitting document’s content, when it was fetched with the row.
- Type:
Any
- class couchbase.views.ViewScanConsistency(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
How current a view’s index must be when a view query reads it.
Warning
couchbase.bucket.ViewScanConsistencyis deprecated, and will be removed in a future release. ImportViewScanConsistencyfromcouchbase.views.NOT_BOUNDEDreads the index as it is.REQUEST_PLUSupdates the index first, so the query sees every mutation made before it.UPDATE_AFTERreads the index as it is and then updates it.- NOT_BOUNDED = 'ok'
- REQUEST_PLUS = 'false'
- UPDATE_AFTER = 'update_after'