Because metadata are only loosely coupled with their respective time series in order to keep metadata records constant over multiple version of time series if the data description does not change, it comes in handy to find out the last time meta information was updated. This function automagickally finds exactly this date.
db_meta_get_latest_validity(
con,
ts_keys,
regex = FALSE,
locale = NULL,
schema = "timeseries"
)
RPostgres connection object.
character vector of time series identifiers.
boolean indicating if ts_keys should be interpreted as a regular expression pattern. Defaults to FALSE.
character indicating the language of the meta information to be store. We recommend to use ISO country codes to represent languages. Defaults to NULL. When local is set to NULL, metadata are stored without localization. Note that, when localizing meta information by assigning a language, multiple meta information objects can be stored for a single time series.
character name of the database schema. Defaults to 'timeseries'
data.table of latest validity
Other metadata functions:
db_collection_read_metadata()
,
db_dataset_read_metadata()
,
db_metadata_read()
,
db_metadata_store()