UltraLite User's Guide
Tutorial: Build an Application Using the C++ API
You can use the UltraLite C++ API to develop UltraLite C/C++ programs using an API instead of embedded SQL. It provides an equivalent functionality to embedded SQL, but in the form of a C++ interface.
The UltraLite C++ API starts with a set of base classes that represent the basic components of an UltraLite application. These are:
ULData Represents an UltraLite database.
ULConnection Represents a connection to an UltraLite database, and also handles synchronization.
ULCursor Provides methods used by generated table or result set objects, for accessing and modifying the data.
ULTable Provides methods used by generated table objects, but not by generated result set objects. This class inherits from ULCursor.
ULResultSet Provides methods used by generated result set objects, but not by generated table objects. This class inherits from ULCursor, and is not documented separately as it contains only methods that are in ULCursor.
ULStatement Represents a statement that does not return a result set, such as an INSERT or UPDATE statement. All methods of this class are generated.
For each application, the UltraLite generator writes out a set of classes that describe your particular UltraLite database.
Generated result set classes Individual SQL statements that return result sets are represented by a class, with methods for traversing the result set, and for modifying the underlying data.
Generated table classes Each table in the application is represented by a class, and methods on that table allow the rows of the table to be modified.
For example, for a table named Employee, the UltraLite generator generates a class also named Employee.
Generated statement classes Individual SQL statements that do not return result sets are represented by a simple class with an Execute method.
You use these classes in your application to access and modify data, and to synchronize with consolidated databases.