TFS Cleanup Functions
Collaboration diagram for TFS Cleanup Functions:

Functions

RDM_RETCODE rdm_tfsDropDatabase (RDM_TFS tfs, const char *dbNameSpec)
Drop the specified database. More...
RDM_RETCODE rdm_tfsFree (RDM_TFS hTFS)
Terminate a TFS service. More...

Detailed Description

The TFS cleanup API. The functions here are located in Transactional File Server Interface Library. Linker option:

    -lrdmtfs

Function Documentation

rdm_tfsDropDatabase()

RDM_RETCODE rdm_tfsDropDatabase ( RDM_TFS tfs,
const char * dbNameSpec
)

#include <rdmtfsapi.h>

Drop the specified database.

This function drops the entire contents of the database, including

  • The database content files
  • The database schema files
  • The database log files
  • All SQL related files
  • The database directory

It will fail if the database is open by any other users. This operation is not transactional and cannot be undone or rolled back.

This function is primarily used to maintain temporary or working databases that exist only for the duration of the application program.

Return values
sOKAY Normal, successful return.
eDBOPENED Operation not completed because database is open.
sNODB Database does not exist.
See also
rdm_rdmAllocTFS
rdm_tfsSetOptions
rdm_tfsAllocDatabase
rdm_tfsFree
Parameters
[in] tfs A TFS handle
[in] dbNameSpec The database name specification for the database to be dropped
Examples
core01Example_main.c, cpp50Example_main.cpp, and cpp55Example_main.cpp.

rdm_tfsFree()