Closes a connection to an edge database instance.
For an overview, see the Edge Client page.
MCO_RET mco_edge_disconnect(mco_edge_h eh);
eh
mco_edge_connect() call. This handle is thread-local and must not be
used after the function returns successfully.Closes the specified connection to an edge database instance, analogous to mco_db_disconnect() in the core runtime.
This function releases all resources associated with the connection handle, including internal buffers and synchronization objects. After successful
disconnection, the handle eh becomes invalid and must not be used in subsequent API calls.
It is safe to call mco_edge_disconnect() even if the connection was never successfully established; in such cases, the function performs
no operation and returns MCO_S_OK.
Applications should ensure that all transactions on the connection have been committed or rolled back before calling this function to avoid data inconsistency.
MCO_S_OK
MCO_E_ILLEGAL_PARAM
eh is invalid or NULL.MCO_E_NOINSTANCE
MCO_E_TRANS_NOT_CLOSED