Skip to contents

[Experimental] get_data_store_keys() lists the keys stored under a namespace in a DHIS2 instance's key/value data store. See get_data_store_namespaces().

Usage

get_data_store_keys(
  namespace,
  store = c("system", "user"),
  auth = NULL,
  call = caller_env()
)

Arguments

namespace

A data store namespace, as returned by get_data_store_namespaces().

store

Optional. 'system' (default) or 'user'; see get_data_store_namespaces().

auth

Optional. The authentication object.

call

The caller environment.

Value

A character vector of keys, or NULL if the namespace has none. Confirmed live against a public DHIS2 demo instance.

Examples


namespaces <- get_data_store_namespaces()
get_data_store_keys(namespaces[1])
#> [1] "configurations"        "configurationsMaurice" "configurationsTOM"