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

Class WatchQueryIndexOptions

couchbase/management/options.py:724–754  ·  view source on GitHub ↗

Available options to for a :class:`~couchbase.management.queries.QueryIndexManager`'s watch indexes operation. .. note:: All management options should be imported from `couchbase.management.options`. Args: collection_name (str, optional): **DEPRECATED** - use :class:`~

Source from the content-addressed store, hash-verified

722
723
724class WatchQueryIndexOptions(dict):
725 """Available options to for a :class:`~couchbase.management.queries.QueryIndexManager`'s watch
726 indexes operation.
727
728 .. note::
729 All management options should be imported from `couchbase.management.options`.
730
731 Args:
732 collection_name (str, optional): **DEPRECATED** - use :class:`~couchbase.management.queries.CollectionQueryIndexManager`.
733 Specifies the collection of the index.
734 scope_name (str, optional): **DEPRECATED** - use :class:`~couchbase.management.queries.CollectionQueryIndexManager`.
735 Specifies the scope of the index.
736 timeout (timedelta, optional): The timeout for this operation. Defaults to global
737 management operation timeout.
738 watch_primary (bool, optional): Specifies whether the primary indexes should
739 be watched as well.
740 parent_span (:class:`~couchbase.observability.tracing.RequestTracer`, optional): The parent span for this operation.
741 """ # noqa: E501
742 @overload
743 def __init__(self,
744 watch_primary: Optional[bool] = None,
745 timeout: Optional[timedelta] = None,
746 scope_name: Optional[str] = None,
747 collection_name: Optional[str] = None,
748 parent_span: Optional[RequestSpan] = None
749 ) -> None:
750 ...
751
752 def __init__(self, **kwargs: Any) -> None:
753 kwargs = {k: v for k, v in kwargs.items() if v is not None}
754 super().__init__(**kwargs)
755
756
757class BuildDeferredQueryIndexOptions(dict):

Callers 15

test_deferredMethod · 0.90
test_watchMethod · 0.90
test_deferredMethod · 0.90
test_watchMethod · 0.90
test_deferredMethod · 0.90
test_watchMethod · 0.90
test_query_index_mgmtMethod · 0.90
test_query_index_mgmtMethod · 0.90
test_watchMethod · 0.90
test_deferredMethod · 0.90
test_watchMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_deferredMethod · 0.72
test_watchMethod · 0.72
test_deferredMethod · 0.72
test_watchMethod · 0.72
test_deferredMethod · 0.72
test_watchMethod · 0.72
test_query_index_mgmtMethod · 0.72
test_query_index_mgmtMethod · 0.72
test_watchMethod · 0.72
test_deferredMethod · 0.72
test_watchMethod · 0.72