time_series_custom.sdl

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

rdm-compile -s time_series_custom.sdl

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

#include "time_series_custom_structs.h"
create table measurement
(
time_stamp_current uint64 primary key,
value_current double not null
);
create table measurement_stats_custom
(
time_stamp_last uint64 primary key,
n uint64 not null,
value_sum double not null
);