# Database (`MC_DB`) Fixed-record database lifecycle, CRUD, enumeration, sorting, and persistence. This WIPI-C 1.2.1 family contains **13** cataloged APIs; **1** currently have reviewed or draft semantic notes. | Symbol | Prototype | Documentation | |---|---|---| | [`MC_dbOpenDataBase`](../symbols/MC_dbOpenDataBase.md) | `M_Int32 MC_dbOpenDataBase(M_Char *dataBaseName, M_Int32 recordSize, M_Boolean create, M_Int32 mode)` | `draft` | | [`MC_dbCloseDataBase`](../symbols/MC_dbCloseDataBase.md) | `M_Int32 MC_dbCloseDataBase(M_Int32 dbId)` | `cataloged` | | [`MC_dbDeleteDataBase`](../symbols/MC_dbDeleteDataBase.md) | `M_Int32 MC_dbDeleteDataBase(M_Char *dataBaseName, M_Int32 mode)` | `cataloged` | | [`MC_dbInsertRecord`](../symbols/MC_dbInsertRecord.md) | `M_Int32 MC_dbInsertRecord(M_Int32 dbId, M_Byte *buf, M_Int32 len)` | `cataloged` | | [`MC_dbSelectRecord`](../symbols/MC_dbSelectRecord.md) | `M_Int32 MC_dbSelectRecord(M_Int32 dbId, M_Int32 recId, M_Byte *buf, M_Int32 len)` | `cataloged` | | [`MC_dbUpdateRecord`](../symbols/MC_dbUpdateRecord.md) | `M_Int32 MC_dbUpdateRecord(M_Int32 dbId, M_Int32 recId, M_Byte *buf, M_Int32 len)` | `cataloged` | | [`MC_dbDeleteRecord`](../symbols/MC_dbDeleteRecord.md) | `M_Int32 MC_dbDeleteRecord(M_Int32 dbId, M_Int32 recId)` | `cataloged` | | [`MC_dbListRecords`](../symbols/MC_dbListRecords.md) | `M_Int32 MC_dbListRecords(M_Int32 dbId, M_Int32 *buf, M_Int32 len)` | `cataloged` | | [`MC_dbSortRecords`](../symbols/MC_dbSortRecords.md) | `M_Int32 MC_dbSortRecords(M_Int32 dbId, M_Int32 *buf, M_Int32 len, M_Int32 (*compare)(const void *, const void *), M_Int32 (*filter)(const void *))` | `cataloged` | | [`MC_dbGetAccessMode`](../symbols/MC_dbGetAccessMode.md) | `M_Int32 MC_dbGetAccessMode(M_Char *dataBaseName)` | `cataloged` | | [`MC_dbGetNumberOfRecords`](../symbols/MC_dbGetNumberOfRecords.md) | `M_Int32 MC_dbGetNumberOfRecords(M_Int32 dbId)` | `cataloged` | | [`MC_dbGetRecordSize`](../symbols/MC_dbGetRecordSize.md) | `M_Int32 MC_dbGetRecordSize(M_Int32 dbId)` | `cataloged` | | [`MC_dbListDataBases`](../symbols/MC_dbListDataBases.md) | `M_Int32 MC_dbListDataBases(M_Byte *buf, M_Int32 len)` | `cataloged` | ```{toctree} :hidden: :maxdepth: 1 ../symbols/MC_dbOpenDataBase ../symbols/MC_dbCloseDataBase ../symbols/MC_dbDeleteDataBase ../symbols/MC_dbInsertRecord ../symbols/MC_dbSelectRecord ../symbols/MC_dbUpdateRecord ../symbols/MC_dbDeleteRecord ../symbols/MC_dbListRecords ../symbols/MC_dbSortRecords ../symbols/MC_dbGetAccessMode ../symbols/MC_dbGetNumberOfRecords ../symbols/MC_dbGetRecordSize ../symbols/MC_dbListDataBases ```