Operational Flow

The basic operational flow for creating an RaimaDB C or C++ application program.

In the diagram above, the schema file is submitted to the DDL processor (rdm-compile), which compiles the schema and creates artifacts which define the database catalog and C or C++ header file of structures, constant, and class declarations for use with the C or C++ programs that access the database. The source code for your C or C++ application program, which includes the header file created by rdm-compile and the standard RaimaDB header file (rdm.h), is then compiled, and the resulting object code is linked with the RaimaDB libraries to create the executable application program. The RaimaDB library functions called from within the program manipulate the database content as defined by the database catalog.

The following procedure summarizes the basic steps necessary to create a RaimaDB application which has the TFS embedded in the user application (see System Design).

  1. Design the database. That is, determine what data is to stored in the database and how it should be organized.
  2. Prepare the schema file.
  3. Compile the schema file using the RaimaDB schema compiler (rdm-compile).
  4. Compile and link your application program with the RaimaDB libraries.
  5. Run your RaimaDB application.

The following Introductory HelloWorld Example section illustrates each of these steps by describing the development of a simple database application.