Functions | |
RDM_RETCODE | rdm_cursorGetRowsAtPosition (RDM_CURSOR sourceCursor, RDM_CURSOR *pCursor) |
Associate an RDM_CURSOR with rows from a table ordered by rowid and positioned to the same row as the source cursor. More... | |
Core cursor association API for retrieving rows in rowid order positioned at a given row. 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.
RDM_RETCODE rdm_cursorGetRowsAtPosition | ( | RDM_CURSOR | sourceCursor, |
RDM_CURSOR * | pCursor | ||
) |
#include <rdmcursorapi.h>
Associate an RDM_CURSOR with rows from a table ordered by rowid and positioned to the same row as the source cursor.
This function associates the RDM_CURSOR pointed to by pCursor with a row set ordered by rowid. The row set for the RDM_CURSOR contains all of the rows for the table of sourceCursor. The RDM_CURSOR will be initially positioned to the same row as sourceCursor.
sOKAY | Normal, successful return. |
eNOSTARTREAD | A read operation was attempted when no rdm_dbStartSnapshot(), rdm_dbStartRead(), or rdm_dbStartUpdate() is active. |
eNOTLOCKED | Attempt to access a table for reading or update without proper locks. |
eDBNOTOPEN | Database not open. |
eNOCURRENTROW | The cursor is not positioned to a valid row. |
eOWNERDELETED | The owner row for a set cursor has been deleted. |
eSINGLETONDELETED | The row for a singleton cursor has been deleted. |
[in] | sourceCursor | The cursor whose current row will be used for the table and initial cursor position |
[out] | pCursor | A pointer to an RDM_CURSOR (must be allocated, associated with db, or set to NULL) |