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

Method values

acouchbase/datastructures.py:594–604  ·  view source on GitHub ↗

Returns a list of all the values which exist in the map. :return: The keys in CouchbaseMap

(self)

Source from the content-addressed store, hash-verified

592 return list(map_.content_as[dict].keys())
593
594 async def values(self) -> List[str]:
595 """
596 Returns a list of all the values which exist in the map.
597
598 :return: The keys in CouchbaseMap
599 """
600 op_type = DatastructureOperationType.MapValues
601 async with ObservableRequestHandler(op_type, self._impl.observability_instruments) as ds_obs_handler:
602 ds_obs_handler.create_kv_span(self._impl._request_builder._collection_dtls.get_details_as_dict())
603 map_ = await self._get(parent_span=ds_obs_handler.wrapped_span)
604 return list(map_.content_as[dict].values())
605
606 async def get_all(self) -> List[Any]:
607 """

Callers 9

test_mapMethod · 0.45
test_setsMethod · 0.45
test_pingMethod · 0.45
test_pingMethod · 0.45
test_non_blockingMethod · 0.45
test_kv_ds_mapMethod · 0.45
test_kv_ds_setMethod · 0.45
test_kv_ds_mapMethod · 0.45
test_kv_ds_setMethod · 0.45

Calls 4

_getMethod · 0.95
get_details_as_dictMethod · 0.80
create_kv_spanMethod · 0.45

Tested by 9

test_mapMethod · 0.36
test_setsMethod · 0.36
test_pingMethod · 0.36
test_pingMethod · 0.36
test_non_blockingMethod · 0.36
test_kv_ds_mapMethod · 0.36
test_kv_ds_setMethod · 0.36
test_kv_ds_mapMethod · 0.36
test_kv_ds_setMethod · 0.36