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

Method get_cluster_labels

src/connection.cxx:592–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592std::pair<std::optional<std::string>, std::optional<std::string>>
593Connection::get_cluster_labels()
594{
595 auto labels = std::make_pair(std::optional<std::string>{}, std::optional<std::string>{});
596 auto cppLabels = cluster_.cluster_label_listener()->cluster_labels();
597 if (cppLabels.cluster_name.has_value()) {
598 labels.first = cppLabels.cluster_name.value();
599 }
600 if (cppLabels.cluster_uuid.has_value()) {
601 labels.second = cppLabels.cluster_uuid.value();
602 }
603 return labels;
604}
605
606PyObject*
607Connection::get_cluster_labels_as_py_object()

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected