...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiCommitTransaction(void);
|
Commit (and close) the current open transactions>. All changes to the EDMdatabase performed in the current open transaction will be made persistent in the EDMdatabase.
When the current committed transaction is part of a nested transaction, the changes performed in the actual committed transaction can be undone by a later edmiAbortTransaction operation. Hence updates to an EDMdatabase in nested transactions will not be made persistent before the first started transaction in the nested transaction is committed, or all open transactions are closed by the edmiCommitAllTransactions operation.
Related functions: edmiAbortTransaction , edmiAbortAllTransactions , edmiCommitAllTransactions , edmiStartTransaction
Header:
#include "sdai.h"
Prototype:
EdmiError edmiCommitTransaction(void);
Arguments:
None
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0: Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
. . .
/* Open transaction */
if (rstat = edmiStartTransaction()) goto errorInTransaction;
. . .
/* Commit (make persistent) all changes done in current open transaction;
close current open transaction */
. . .
Arguments
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat;
. . .
/* Open transaction */
if (rstat = edmiStartTransaction()) goto errorInTransaction;
. . .
/* Commit (make persistent) all changes done in current open transaction;
close current open transaction */
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|