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

Method append

txcouchbase/binary_collection.py:78–95  ·  view source on GitHub ↗
(
        self,
        key,  # type: str
        value,  # type: Union[str,bytes,bytearray]
        *opts,  # type: AppendOptions
        **kwargs,  # type: Any
    )

Source from the content-addressed store, hash-verified

76 raise
77
78 def append(
79 self,
80 key, # type: str
81 value, # type: Union[str,bytes,bytearray]
82 *opts, # type: AppendOptions
83 **kwargs, # type: Any
84 ) -> Deferred[MutationResult]:
85 instruments = self._impl.observability_instruments
86 obs_handler = ObservableRequestHandler.create_or_none(KeyValueOperationType.Append, instruments)
87 try:
88 req = self._impl.request_builder.build_append_request(key, value, obs_handler, *opts, **kwargs)
89 d = self._impl.append_deferred(req, obs_handler)
90 d.addBoth(self._impl._finish_span, obs_handler)
91 return d
92 except Exception as e:
93 if obs_handler is not None:
94 obs_handler.__exit__(type(e), e, e.__traceback__)
95 raise
96
97 def prepend(
98 self,

Callers 15

get_cpp_typeMethod · 0.45
get_py_typeMethod · 0.45
build_binding_kv_opMethod · 0.45
build_mgmt_operationsMethod · 0.45
set_cpp_core_typesMethod · 0.45

Calls 4

create_or_noneMethod · 0.80
build_append_requestMethod · 0.80
append_deferredMethod · 0.80
__exit__Method · 0.80

Tested by 6

get_scopeMethod · 0.36
get_scopeMethod · 0.36
load_dataMethod · 0.36
get_scopeMethod · 0.36