Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - C and C++ Programming » UltraLite C/C++ Common API Reference

ULEnableEccSyncEncryption function Next Page

ULEnableFileDB function (deprecated)


Use a file-based data store on a device operating the Palm OS version 4.0 or later.

Deprecated function

This 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.

Syntax

void ULEnableFileDB( SQLCA * sqlca );

Parameters

sqlca    A pointer to the SQLCA. This argument is supplied in C++ Component applications.

In the C++ Component use the Sqlca.GetCA method.

Remarks

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.

Examples

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
}
See also