The ts_update_metadata() function

The ts_update_metadata() function adds the supplied user-defined metadata to the specified time series.

Syntax

ts_timeseries *
ts_update_metadata(ts_timeseries *ts, 
                    mi_lvarchar   *metadata, 
                    MI_TYPEID     *metadata_typeid)
ts
The time series for which to update metadata.
metadata
The metadata to add to the time series. Can be NULL.
metadata_typeid
The type ID of the metadata.

Description

The equivalent SQL function is UpdMetaData.

Returns

A copy of the specified time series updated to contain the supplied metadata, or if the metadata argument is NULL, a copy of the specified time series with the metadata removed.