Miscellaneous functions
Collaboration diagram for Miscellaneous functions:

Functions

RDM_RETCODE rdm_cursorGetLockStatus (RDM_CURSOR cursor, RDM_LOCK_STATUS *status)
 Get the lock status of a table. More...
 

Detailed Description

API for other miscellaneous core cursor functions. All the functions here are located in RDM DB Engine Library. Linker option:

    -lrdmrdm

See RDM Cursor APIs for a more detailed description of a cursor.

Function Documentation

◆ rdm_cursorGetLockStatus()

RDM_RETCODE rdm_cursorGetLockStatus ( RDM_CURSOR  cursor,
RDM_LOCK_STATUS status 
)

#include <rdmcursorapi.h>

Get the lock status of a table.

This function returns the current lock status of the table the cursor is based on. If the database handle that cursor is based on does not have a lock on the table then the status will be RDM_LOCK_FREE regardless of whether any other users have the table locked.

Locking Requirements
None
Return values
sOKAYNormal, successful return.
eDBNOTOPENDatabase not open.
See also
rdm_dbOpen
rdm_dbGetLockStatus
rdm_cursorGetLockStatus
rdm_dbGetTransactionStatus
rdm_dbStartUpdate
rdm_dbStartRead
rdm_dbStartSnapshot
rdm_dbGetRows
rdm_dbEnd
rdm_transEnd
Parameters
[in]cursorA valid RDM_CURSOR handle
[out]statusThe current lock status for the table associated with the cursor