The ts_timeseries structure
A ts_timeseries structure is the header for a time series. It can be stored in and retrieved from a time series column of a table.
The ts_timeseries structure contains pointers, so it cannot be copied directly. Use the ts_copy() function to copy a time series.
When you pass a binary time series value, ts, of type ts_timeseries,
to mi_exec_prepared_statement(), you must pass ts in
the values array and 0
in the lengths array.