Remove an Entire Time Series Key Collection
db_collection_delete(
con,
collection_name,
user = Sys.info()["user"],
schema = "timeseries"
)
RPostgres connection object.
character name of a collection to read. Collection are bookmark lists that contain time series keys.
character name of the database user. Defaults to the user of the R session. this is often the user for the database, too so you do not have to specify your username explicitly if that is the case.
character name of the database schema. Defaults to 'timeseries'
Other collections functions:
db_collection_add_ts()
,
db_collection_get_keys()
,
db_collection_get_last_update()
,
db_collection_list()
,
db_collection_remove_ts()
if (FALSE) {
db_ts_store(con = connection, zrh_airport, schema = "schema")
db_ts_store(con = connection, kof_ts, schema = "schema")
db_collection_add_ts(
con = connection,
collection_name = "barometer and departures zurich",
ts_keys = c(
"ch.zrh_airport.departure.total",
"ch.zrh_airport.departure.total",
"ch.kof.barometer"
),
schema = "schema"
)
db_collection_delete(
con = connection,
collection_name = "barometer and departures zurich",
schema = "schema"
)
}