Contents Index Preprocessing projects with a single embedded SQL source file The Embedded SQL Interface pdf/preface.pdf

UltraLite User's Guide
  Developing Embedded SQL Applications
    Preprocessing your embedded SQL files

Preprocessing projects with more than one embedded SQL file


If you have more than one embedded SQL source file, you must run the UltraLite generator separately. You must also run the UltraLite generator separately if you use transport-layer security or if you use synchronization publications.

You must specify an UltraLite project on the sqlpp command line so that the SQL statements in the files are grouped together in the same project in the reference database.

For information on projects, see Creating an UltraLite project.

To preprocess an embedded SQL source file (more than one file)

  1. Preprocess each embedded SQL source file.

    Use the -p switch to specify a project name when you run the SQL preprocessor. Use the same project name when you preprocess each embedded SQL file in your project.

  2. Run the UltraLite generator to create the supplementary C/C++ code.

    For more information on the generator, see Generating the UltraLite data access code.

By default, the UltraLite generator, ulgen, writes to the file project-name.c. Choose a project name not already assigned to another C or embedded SQL source file, so that an existing file will not be overwritten.

Example 

For detailed information about the SQL preprocessor, see The SQL preprocessor.


Contents Index Preprocessing projects with a single embedded SQL source file The Embedded SQL Interface pdf/preface.pdf