Database Instantiation Functions
Collaboration diagram for Database Instantiation Functions:

Functions

RDM_RETCODE rdm_tfsAllocDatabase (RDM_TFS tfs, RDM_DB *pDb)
 Allocate memory for a new RDM db. More...
 

Detailed Description

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

    -lrdmtfs

Function Documentation

◆ rdm_tfsAllocDatabase()

RDM_RETCODE rdm_tfsAllocDatabase ( RDM_TFS  tfs,
RDM_DB pDb 
)

#include <rdmtfsapi.h>

Allocate memory for a new RDM db.

This function allocates memory for and initializes an RDM_DB using the specified RDM_TFS. You must call rdm_dbOpen() or rdm_dbSetCatalog() to associate a schema with the database handle.

This function can be called from several threads in parallel to obtain thread specific database handles as long as no other operations are performed on the tfs handle.

Return values
sOKAYNormal, successful return.
See also
rdm_rdmAllocTFS
rdm_dbFree
rdm_dbOpen
rdm_tfsFree
Parameters
[in]tfsThe RDM_TFS associated with the RDM_DB
[out]pDbA pointer an RDM_DB
Examples
c-core/01_helloworld_c/core01Example_main.c, c-core/09_core/core09Example_main.c, c-core/12_core/core12Example_main.c, c-core/14_core/core14Example_main.c, c-core/15_core/core15Example_main.c, c-core/16_core/core16Example_main.c, c-core/17_core/core17Example_main.c, c-core/18_core/core18Example_main.c, c-core/19_core/core19Example_main.c, c-core/31_core/core31Example_main.c, c-core/32_core/core32Example_main.c, c-core/33_core/core33Example_main.c, c-core/34_core/core34Example_main.c, and tfs/rdmAllocTFS.c.