Update Description and/or Metadata of a Dataset

db_dataset_update_metadata(
  con,
  set_name,
  description = NULL,
  metadata = NULL,
  metadata_update_mode = "update",
  schema = "timeseries"
)

Arguments

con

RPostgres connection object.

set_name

character name of a dataset.

description

character New description. If set to NA (default) the description is left untouched

metadata

list Metadata update (see metadata_update_mode)

metadata_update_mode

character one of "update" or "overwrite". If set to "update", new fields in the list are added to the existing metadata and existing fields overwritten. If NA nothing happens in update mode. If set to "overwrite" ALL existing metadata is replaced.

schema

character name of the database schema. Defaults to 'timeseries'

Examples


if (FALSE) {

db_dataset_update_metadata(
  con = connection,
  set_name = "zrh_airport_data",
  description = "updating description Zurich airport arrivals and departures",
  schema = "schema"
)
}