MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / upsert

Method upsert

couchbase/logic/collection_impl.py:405–409  ·  view source on GitHub ↗
(self,
               req: PycbcCoreKeyValueRequest,
               obs_handler: ObservableRequestHandler)

Source from the content-addressed store, hash-verified

403 return output
404
405 def upsert(self,
406 req: PycbcCoreKeyValueRequest,
407 obs_handler: ObservableRequestHandler) -> MutationResult:
408 ret = self._client_adapter.execute_collection_request(req.opcode, req, obs_handler=obs_handler)
409 return MutationResult(ret, key=req.key)
410
411 def upsert_multi(self,
412 req: KeyValueMultiRequest,

Calls 2

MutationResultClass · 0.90