Performs low level and index validation on a database.
public static bool ValidateDatabase( const char * connParms, ul_u_short flags, ul_validate_callback_fn fn, void * userData, ULError * error )
connParms The parameters used to connect to the database.
flags The flags controlling the type of validation; see below.
fn A function to receive validation progress information.
userData The user data to send back to the caller via the callback.
error An optional ULError object to receive error information.
True if the validation succeeds. False otherwise.
The flags parameter is combination of the following values:
#ULVF_TABLE For more information, see ULVF_TABLE variable.
#ULVF_INDEX For more information, see ULVF_INDEX variable.
#ULVF_DATABASE For more information, see ULVF_DATABASE variable.
#ULVF_EXPRESS For more information, see ULVF_EXPRESS variable.
#ULVF_FULL_VALIDATE For more information, see ULVF_FULL_VALIDATE variable.
The following example demonstrates table and index validation in express mode:
flags = ULVF_TABLE | ULVF_INDEX | ULVF_EXPRESS;