edmiStartTransaction

edmiStartTransaction


 

EdmiError edmiStartTransaction(void);

Start (open) a new transaction. All updates to an EDMdatabase in an open transaction will not be made persistent before all open transactions are committed and closed by either the edmiCommitTransaction or the edmiCommitAllTransactions operations. All updates to an EDMdatabase in an open transaction will be undone when the open transaction is aborted and closed by either the edmiAbortTransaction or edmiAbortAllTransactions operations. Transactions can be nested.

The following EDMinterface operations are illegal (will produce an error) in an open transaction: (The edmiWriteStepFile operation is legal in an open transaction if the actual data model is open when the edmiWriteStepFile operation is invoked)

 

Arguments


Return Value


Options


 

Example


 

EdmiError rstat; . . . if (rstat = edmiStartTransaction()) { /* Error in operation */ printf("\nError: %s in edmiStartTransaction \n", edmiGetErrorText(rstat)); goto error; } . . . if (rstat = edmiCommitTransaction()) { /* Error in operation */ printf("\nError: %s in edmiCommitTransaction \n", edmiGetErrorText(rstat)); goto error; } . . .

 

See also

Filter by label

There are no items with the selected labels at this time.