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

Method get_all

acouchbase/datastructures.py:606–616  ·  view source on GitHub ↗

Retrieves the entire map. :return: The entire CouchbaseMap

(self)

Source from the content-addressed store, hash-verified

604 return list(map_.content_as[dict].values())
605
606 async def get_all(self) -> List[Any]:
607 """
608 Retrieves the entire map.
609
610 :return: The entire CouchbaseMap
611 """
612 op_type = DatastructureOperationType.MapGetAll
613 async with ObservableRequestHandler(op_type, self._impl.observability_instruments) as ds_obs_handler:
614 ds_obs_handler.create_kv_span(self._impl._request_builder._collection_dtls.get_details_as_dict())
615 map_ = await self._get(parent_span=ds_obs_handler.wrapped_span)
616 return map_.content_as[dict]
617
618 async def clear(self) -> None:
619 """

Callers 6

test_listMethod · 0.45
test_kv_ds_listMethod · 0.45
test_kv_ds_listMethod · 0.45

Calls 4

_getMethod · 0.95
get_details_as_dictMethod · 0.80
create_kv_spanMethod · 0.45

Tested by 6

test_listMethod · 0.36
test_kv_ds_listMethod · 0.36
test_kv_ds_listMethod · 0.36