time_series_restore_aggregate.sdl
Scema for the time_series_restore_aggregate.cpp example. Compile this schema using rdm-compile as follows:
rdm-compile -s time_series_restore_aggregate.sdl
and include the generated struct definition file in your code as follows:
#include "time_series_restore_aggregate_structs.h"
create table measurement
(
time_stamp_current uint64 primary key,
value_current double not null
);
create table measurement_stat1
(
time_stamp_first uint64 not null,
time_stamp_last uint64 primary key,
n uint64 not null,
value_sum double not null,
value_sum2 double not null
);