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

Method get

txcouchbase/collection.py:74–89  ·  view source on GitHub ↗
(self,
            key,  # type: str
            *opts,  # type: GetOptions
            **kwargs,  # type: Dict[str, Any]
            )

Source from the content-addressed store, hash-verified

72 return self._impl.name
73
74 def get(self,
75 key, # type: str
76 *opts, # type: GetOptions
77 **kwargs, # type: Dict[str, Any]
78 ) -> Deferred[GetResult]:
79 instruments = self._impl.observability_instruments
80 obs_handler = ObservableRequestHandler.create_or_none(KeyValueOperationType.Get, instruments)
81 try:
82 req, transcoder = self._impl.request_builder.build_get_request(key, obs_handler, *opts, **kwargs)
83 d = self._impl.get_deferred(req, transcoder, obs_handler)
84 d.addBoth(self._impl._finish_span, obs_handler)
85 return d
86 except Exception as e:
87 if obs_handler is not None:
88 obs_handler.__exit__(type(e), e, e.__traceback__)
89 raise
90
91 def get_any_replica(self,
92 key, # type: str

Callers 15

build_binding_kv_opMethod · 0.45
build_kv_operationsMethod · 0.45
build_binding_mgmt_opMethod · 0.45
build_mgmt_opMethod · 0.45
build_mgmt_operationsMethod · 0.45
set_cpp_core_typesMethod · 0.45
__init__Method · 0.45

Calls 4

create_or_noneMethod · 0.80
build_get_requestMethod · 0.80
get_deferredMethod · 0.80
__exit__Method · 0.80