Schema Compile (rdm-compile)

If your application IS NOT using the C or C++ APIs for database access, you can skip this section.

The schema compile step creates header files, data structures and access methods used by the C and C++ APIs for manipulating the data in the database.

Compiling Schema

Now that you have your schema definition, you have a few options on how to create the database.

  • Option 1) You can use rdm-create and pass in the name of your schema file you made above then use rdm-compile and pass in --c-structs and the name of your schema file you made above. For example:
    rdm-create bookStore.sdl
    rdm-compile --c-structs bookStore.sdl
    Further information can be found at Creating a Database Using the Schema, or;
  • Option 2) You can use the rdm-sql tool as shown here: