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

Method items

acouchbase/datastructures.py:637–647  ·  view source on GitHub ↗

Provide mechanism to loop over the entire map. :return: Generator expression for CouchbaseMap

(self)

Source from the content-addressed store, hash-verified

635 pass
636
637 async def items(self) -> Generator:
638 """
639 Provide mechanism to loop over the entire map.
640
641 :return: Generator expression for CouchbaseMap
642 """
643 op_type = DatastructureOperationType.MapItems
644 async with ObservableRequestHandler(op_type, self._impl.observability_instruments) as ds_obs_handler:
645 ds_obs_handler.create_kv_span(self._impl._request_builder._collection_dtls.get_details_as_dict())
646 map_ = await self._get(parent_span=ds_obs_handler.wrapped_span)
647 return ((k, v) for k, v in map_.content_as[dict].items())
648
649
650class CouchbaseSet:

Callers 13

test_named_paramsMethod · 0.45
test_rawMethod · 0.45
test_mapMethod · 0.45
test_ping_as_jsonMethod · 0.45
test_ping_as_jsonMethod · 0.45
test_non_blockingMethod · 0.45
test_kv_ds_mapMethod · 0.45

Calls 4

_getMethod · 0.95
get_details_as_dictMethod · 0.80
create_kv_spanMethod · 0.45

Tested by 13

test_named_paramsMethod · 0.36
test_rawMethod · 0.36
test_mapMethod · 0.36
test_ping_as_jsonMethod · 0.36
test_ping_as_jsonMethod · 0.36
test_non_blockingMethod · 0.36
test_kv_ds_mapMethod · 0.36