Starts a transaction on an edge database instance.
For an overview, see the Edge Client page.
MCO_RET mco_edge_trans_start(mco_edge_h eh, mco_trans_h *p_trans);
eh
mco_edge_connect() call.p_trans
mco_trans_h handle that will receive the transaction reference. This handle is valid only within the current
thread and must be used for all subsequent operations in the transaction.Starts a transaction on the edge database instance associated with the specified connection handle, analogous to mco_trans_start() in the core runtime.
All transactions are implicitly read-write. There are no read-only transactions because edge database are not searchable/navigable; edge databases are effectively write-only. Also the transaction manager is MURSIW: if multiple threads execute transactions, they are processed sequentially.
MCO_S_OK
MCO_E_ILLEGAL_PARAM
NULL eh or p_trans).MCO_E_NOINSTANCE
eh does not refer to a valid, open edge database instance.