|
Functions | |
| RDM_RETCODE | rdm_cursorDeleteRow (RDM_CURSOR cursor) |
| Delete a row from a table. More... | |
API for deleting a row identified by a core cursor. All the functions here are located in RDM DB Engine Library. Linker option:
-lrdmrdmSee RDM Cursor APIs for a more detailed description of a cursor.
| RDM_RETCODE rdm_cursorDeleteRow | ( | RDM_CURSOR | cursor | ) |
#include <rdmcursorapi.h>
Delete a row from a table.
This function deletes the current row of cursor from the database.
After the row has been deleted the cursor will no longer have a current row. However it will maintain a virtual position which be the position between the rows neighboring the deleted row. The neighboring rows are dependent upon on the type of cursor.
The ability to delete a row will be based on the triggered action specified in the table definition. A row that only references other rows will be deleted and the references automatically removed. The behavior of a row that is referenced by other rows will be dependent the ON DELETE triggered action.
If the the triggered action is:
| sOKAY | Normal, successful return. |
| eREADONLY | Database is read-only and cannot be updated. |
| eNOSTARTUPDATE | An update operation was attempted when no rdm_dbStartUpdate() is active. |
| eNOTLOCKED | Attempt to access a table for reading or update without proper locks. |
| eDBNOTOPEN | Database not open. |
| ePRECOMMITTED | A precommitted transaction must be committed or rolled back before further operations on this database are allowed. |
| eREFINTEGRITY | Integrity constraint violation. |
| [in] | cursor | The cursor whose current row will be deleted |