Topic group Related topics
Clears the transaction log, committing all logged changes
The database whose changes you want to commit.
A transaction works by logging all changes. If an error occurs while attempting one of the changes, or the changes need to be undone for some other reason, the transaction is canceled by calling the rollback( ) method. Otherwise, commit( ) is called to clear the transaction log, thereby indicating that all the changes in the transaction were committed and that the transaction as a whole was posted.