Products Support Documentation Download
core05_db.h
1 #ifndef CORE05_DB_H
2 #define CORE05_DB_H
3 /*lint ++flb */
4 
5 /* Raima Database Manager 11.0.0.1000 */
6 
7 /* ----------------------------------------------------------------------------
8  *
9  * Raima Database Manager
10  *
11  * Copyright (c) 2012 Raima Inc., All rights reserved.
12  *
13  * Use of this software, whether in source code format, or in executable,
14  * binary object code form, is governed by the Raima LICENSE which
15  * is fully described in the LICENSE.TXT file, included within this
16  * distribution of files.
17  *
18  * ----------------------------------------------------------------------------
19  */
20 
21 /* EXAMPLE - Core05 C */
22 /* This is the DDL (Database Definition Language) for a database implementing
23  * two one-to-many relationship using network model sets. The database will
24  * demonstrate the use of a b-tree index. There is one record defined and
25  * that record contains a single indexed character field. The index is not
26  * defined an unique therefore it will allow duplicate values.
27  *
28  * This schema file should be processed using the ddlp utility using the
29  * -c and -d options to create an embedded dbd file. The -c option will
30  * generate a c header file (core05_db_dbd.h) and a c source file
31  * (core05_db_dbd.c) which can be compiled into the application and used with
32  * the d_open_ptr API to create the database if it does not already exist.
33  */
34 
35 
36 /* database core05_db record/key structure declarations */
37 
38 struct person {
39  char last_four_ssn[5];
40 };
41 
42 /* record, field and set table entry definitions */
43 
44 /* File Id Constants */
45 
46 /* Record Name Constants */
47 #define PERSON 10000
48 
49 /* Field Name Constants */
50 #define PERSON_LAST_FOUR_SSN 0L
51 
52 /* Set Name Constants */
53 
54 /* Field Sizes */
55 #define SIZEOF_PERSON_LAST_FOUR_SSN 5
56 
57 /*lint --flb */
58 #endif /* CORE05_DB_H */
person
Definition: core05_db.h:38