core02Example.sdl

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

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

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

#include "core02Example_structs.h"
#include "core02Example_cat.h"

and compile the following generated source file(s):

core02Example_cat.c

Here follows the actual schema:

/*
* EXAMPLE - Core02 for C
*
* This is the DDL (Database Definition Language) for a single field,
* single record-type database. The one record type is called CORE02_RECORD,
* and it's one field, MESSAGE, can store an UTF-8 string.
*/
create table core02_record
(
message char(50) not null
);