Shuts down an edge database instance and releases its associated resources.
For an overview, see the Edge Client page.
MCO_RET mco_edge_close(const char *db_name);
db_name
mco_edge_open() call.Shuts down the specified edge database instance and releases all associated resources, including the ring buffer, communication buffers,
and internal data structures. This function is analogous to mco_db_close() in the core runtime.
Before calling mco_edge_close(), ensure that all transactions on the database have been committed or rolled back,
and that no active connections remain. The function will fail if the database is still in use.
After successful closure, the memory region originally passed to mco_edge_open() may be safely reused or freed by the application.
MCO_S_OK
MCO_E_OPENED_SESSIONS
mco_edge_close().MCO_E_NOINSTANCE
db_name exists.