time_series_range.sdl

Scema for the time_series_range.cpp example. Compile this schema using rdm-compile as follows:

rdm-compile -s time_series_range.sdl

and include the generated struct definition file in your code as follows:

#include "time_series_range_structs.h"
/** \brief Schema for holding measurements with FFT \ref RDM_CPP::TIME_SERIES_STAT
*/
create table measurement
(
time_stamp_current uint64 primary key,
value_current double not null
);
create table measurement_range
(
value_range double array [16] not null,
time_stamp_first uint64 not null,
time_stamp_last uint64 primary key
);