core31Example.sdl

Schema for the core31Example_main.c example. Compile this schema using rdm-compile as follows:

rdm-compile --c-structs --lc-struct-members --catalog core31Example.sdl

and include the generated header file(s) as follows:

#include "core31Example_structs.h"
#include "core31Example_cat.h"

and compile the following generated source file(s):

core31Example_cat.c

Here follows the actual schema:

CREATE TABLE one
(
myChar char(32) PRIMARY KEY
);
CREATE TABLE many
(
myChar char(32),
myChar_one char(32) REFERENCES one
);