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

Method insert

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

Source from the content-addressed store, hash-verified

280 return MultiCounterResult(ret, return_exceptions=req.return_exceptions, obs_handler=obs_handler)
281
282 def insert(self,
283 req: PycbcCoreKeyValueRequest,
284 obs_handler: ObservableRequestHandler) -> MutationResult:
285 ret = self._client_adapter.execute_collection_request(req.opcode, req, obs_handler=obs_handler)
286 return MutationResult(ret, key=req.key)
287
288 def insert_multi(self, req: KeyValueMultiRequest, obs_handler: ObservableRequestHandler) -> MultiMutationResult:
289 ret = self._client_adapter.execute_collection_request(req.opcode, req.request_list, obs_handler=obs_handler)

Callers

nothing calls this directly

Calls 2

MutationResultClass · 0.90

Tested by

no test coverage detected