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

Method keys

acouchbase/datastructures.py:582–592  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

580 return sd_res.exists(0)
581
582 async def keys(self) -> List[str]:
583 """
584 Returns a list of all the keys which exist in the map.
585
586 :return: The keys in CouchbaseMap
587 """
588 op_type = DatastructureOperationType.MapKeys
589 async with ObservableRequestHandler(op_type, self._impl.observability_instruments) as ds_obs_handler:
590 ds_obs_handler.create_kv_span(self._impl._request_builder._collection_dtls.get_details_as_dict())
591 map_ = await self._get(parent_span=ds_obs_handler.wrapped_span)
592 return list(map_.content_as[dict].keys())
593
594 async def values(self) -> List[str]:
595 """

Callers 9

wait_until_readyMethod · 0.45
test_mapMethod · 0.45
test_kv_ds_mapMethod · 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 8

test_mapMethod · 0.36
test_kv_ds_mapMethod · 0.36
test_kv_ds_mapMethod · 0.36