Contents Index Preprocessing your embedded SQL files Preprocessing projects with more than one embedded SQL file pdf/preface.pdf

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

Preprocessing projects with a single embedded SQL source file


If all your embedded SQL code is contained in one source file, you may use the following technique to preprocess this code using the SQL preprocessor and generate the supplementary code in a single step. In this case, the preprocessor automatically runs the UltraLite generator, which writes additional code that describes your database schema and implements the SQL used in your application.

To preprocess an embedded SQL source file (one file only)

  1. Specify no project name when you run sqlpp, the SQL preprocessor. When invoked without a project name, the preprocessor automatically runs the UltraLite generator and appends the additional C/C++ code, which implements your application database. A single C/C++ source file is generated.

  2. Do not run the UltraLite generator explicitly.

Example 

If the analyzer cannot be invoked, an error results. For more information, see Error on starting the analyzer.

For a list of the parameters to sqlpp, see The SQL preprocessor.


Contents Index Preprocessing your embedded SQL files Preprocessing projects with more than one embedded SQL file pdf/preface.pdf