Functions | |
RDM_RETCODE | rdm_dbGetMemoryUsage (RDM_DB db, uint64_t *systemCurr, uint64_t *systemMax, uint64_t *userCurr, uint64_t *userMax) |
Get memory usage information for a database. More... | |
RDM_RETCODE | rdm_dbGetInfo (RDM_DB db, const char *keyword, char *infoString, size_t bytesIn, size_t *bytesOut) |
Get RDM database information. More... | |
RDM_RETCODE | rdm_dbGetTFS (RDM_DB db, RDM_TFS *pTFS) |
Get the RDM_TFS handle associated with a db. More... | |
RDM_RETCODE | rdm_dbGetTFSType (RDM_DB db, TFS_TYPE *pTfsType) |
Get the type of the RDM_TFS handle associated with a database. More... | |
API for retrieving the TFS information for a database. All the functions here are located in RDM DB Engine Library. Linker option:
-lrdmrdm
RDM_RETCODE rdm_dbGetInfo | ( | RDM_DB | db, |
const char * | keyword, | ||
char * | infoString, | ||
size_t | bytesIn, | ||
size_t * | bytesOut | ||
) |
#include <rdmdbapi.h>
Get RDM database information.
The function returns a semicolon-delimited list of information keywords and returns information associated with the keyword.
keyword should be a list of info values. If keyword is NULL, the function returns the pairs for all available options. If keyword is an empty string, the function returns an empty string.
sOKAY | Normal, successful return. |
eINVOPTION | Invalid option identifier is specified. |
[in] | db | A valid RDM database handle |
[in] | keyword | An information keyword |
[out] | infoString | information string |
[in] | bytesIn | # of bytes for optString |
[out] | bytesOut | result # of bytes |
RDM_RETCODE rdm_dbGetMemoryUsage | ( | RDM_DB | db, |
uint64_t * | systemCurr, | ||
uint64_t * | systemMax, | ||
uint64_t * | userCurr, | ||
uint64_t * | userMax | ||
) |
#include <rdmdbapi.h>
Get memory usage information for a database.
This function retrieves memory usage information for a database
The memory usage is split between system memory which is memory that is used by the engine and user data which is memory used for storing the user data (rows, keys, blobs, schema, etc.).
For a disk based database the user memory usage will always be 0 as the data is stored on disk and not in-memory.
Both disk and in-memory databases require system memory.
sOKAY | Normal, successful return. |
eDBNOTOPEN | Database not open. |
[in] | db | A valid RDM database handle |
[out] | systemCurr | The current amount of system memory in use for the database (does not include user data - rows, keys, etc.) |
[out] | systemMax | The maximum total amount of system memory in use for the database (does not include user data - rows, keys, etc.) |
[out] | userCurr | The current amount of memory for user data in the database |
[out] | userMax | The maximum amount of memory for user data in the database |
RDM_RETCODE rdm_dbGetTFS | ( | RDM_DB | db, |
RDM_TFS * | pTFS | ||
) |
#include <rdmdbapi.h>
Get the RDM_TFS handle associated with a db.
This function assigns the RDM_TFS handle associated with an RDM_DB to pTFS.
sOKAY | Normal, successful return. |
RDM_RETCODE rdm_dbGetTFSType | ( | RDM_DB | db, |
TFS_TYPE * | pTfsType | ||
) |
#include <rdmdbapi.h>
Get the type of the RDM_TFS handle associated with a database.
This function assigns the type of the RDM_TFS handle associated with an RDM_DB to pTfsType
sOKAY | Normal, successful return. |
[in] | db | A valid RDM database handle |
[out] | pTfsType | Type of TFS |