core08.sdl
Schema for the core08Example_main.c example. Compile this schema using rdm-compile as follows:
rdm-compile --c-structs --lc-struct-members --catalog core08.sdl
and include the generated header file(s) as follows:
#include "core08_structs.h" #include "core08_cat.h"
and compile the following generated source file(s):
core08_cat.c
Here follows the actual schema:
/*
* EXAMPLE - Database for Core08 example
*
* This is the DDL (Database Definition Language) for a sample database
* that could store sales information. There is only one record type defined
* called OFFICE, it has a single indexed field called NAME.
*/
create table office (
name char(32) not null key
);