Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

 

Code Block
languagecpp
themeConfluence
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
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 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)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"