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

Method consistency

couchbase/logic/search.py:1147–1156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1145
1146 @property
1147 def consistency(self) -> SearchScanConsistency:
1148 value = self._params.get(
1149 'scan_consistency', None
1150 )
1151 if value is None and 'mutation_state' in self._params:
1152 return SearchScanConsistency.AT_PLUS
1153 if value is None:
1154 return SearchScanConsistency.NOT_BOUNDED
1155 if isinstance(value, str):
1156 return SearchScanConsistency.REQUEST_PLUS if value == 'request_plus' else SearchScanConsistency.NOT_BOUNDED
1157
1158 @consistency.setter
1159 def consistency(self, value # type: Union[SearchScanConsistency, str]

Callers

nothing calls this directly

Calls 3

set_optionMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected