Products
Support
Documentation
Download
core09_db.h
1
#ifndef CORE09_DB_H
2
#define CORE09_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 - Database for Core09 example */
22
/* This is the DDL (Database Definition Language) for a sample database
23
* that could store sales information. There is only one record type defined
24
* called office, it has a single indexed field called name.
25
*
26
* This schema file should be processed using the ddlp utility using the
27
* -c option to create an embedded dbd file. The -c option will generate
28
* a c header file (core09_db_dbd.h) and a c source file (core09_db_dbd.c)
29
* which can be compiled into the application and used with the d_open_ptr
30
* API to create the database if it does not already exist.
31
*
32
* The following command was used to generate the database structure used in
33
* this example:
34
*
35
* ddlp -c -d core09_db.ddl
36
*/
37
38
39
/* database core09_db record/key structure declarations */
40
41
struct
office
{
42
char
name[32];
43
};
44
45
/* record, field and set table entry definitions */
46
47
/* File Id Constants */
48
49
/* Record Name Constants */
50
#define OFFICE 10000
51
52
/* Field Name Constants */
53
#define OFFICE_NAME 0L
54
55
/* Set Name Constants */
56
57
/* Field Sizes */
58
#define SIZEOF_OFFICE_NAME 32
59
60
/*lint --flb */
61
#endif
/* CORE09_DB_H */
office
Definition:
core09_db.h:41
Copyright © 2018 Raima, Inc. All rights reserved.