commit
Summary
#include <dataman/dataman.h>
commit else ...
Description
int db_commit();
The commit function terminates a transaction and commits
the changes to the database. The commit is atomic: if any
part of the commit fails, all fail and all parts of the
transaction are backed out. It is as if a rollback()
were called.
Example
#include <dataman/dataman.h>
main(int argc, char *argv[])
{
...
start_transaction(); /* start the transaction */
...
commit else { /* commit the transaction */
pause(15,32, "Can't commit transaction");
return; /* return to main menu */
}
}
«previous next»