core12.sdl
Schema for the core12Example_main.c example. Compile this schema using rdm-compile as follows:
rdm-compile --c-structs --lc-struct-members --catalog core12.sdl
and include the generated header file(s) as follows:
#include "core12_structs.h" #include "core12_cat.h"
and compile the following generated source file(s):
core12_cat.c
Here follows the actual schema:
/*
* EXAMPLE - Database for Core12 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
);