Use a file-based data store on a device operating the Palm OS version 4.0 or later.
Deprecated functionThis function is not required in UltraLite beginning with version 10. The file name determines the location of the data store on a device operating under Palm OS. |
void ULEnableFileDB( SQLCA * sqlca );
sqlca A pointer to the SQLCA. This argument is supplied in C++ Component applications.
In the C++ Component use the Sqlca.GetCA method.
To use the file-based data store on a Palm expansion card, an UltraLite application must call ULEnableFileDB to load the persistent storage file-I/O modules before connecting to the database.
The following embedded SQL code illustrates the use of ULEnableFileDB.
db_init( & sqlca ); ULEnableFileDB( &sqlca ); // connection code here if( SQLCODE == SQLE_CONNECTION_RESTORED ){ // connection was restored // cursor is already open } else { // open cursor }