Accuracer: The First And Only Cross-Platform BDE Replacement
Client-Server Single-File Embedded Database with SQL for Delphi / C++Builder / Kylix


TACRDatabase.Commit
TACRDatabase
Top 

Permanently stores updates, insertions, and deletions of data associated with the current transaction, and ends the current transaction.

procedure Commit(FlushFileBuffers: Boolean = True);

Description
Call Commit to permanently store to the database server all updates, insertions, and deletions of data associated with the current transaction and then end the transaction. The current transaction is the last transaction started by calling StartTransaction.
FlushFileBuffers specifies if file buffers should be flushed after the end of writing changes to the database file. If FlushFileBuffers is set to True, Commit will work a little slower, but immediately after finishing all changes will be saved to the database file, otherwise OS will save them in the backgroung process.

For more information read Transactions topic in Developer's Guide.

Note:   Before calling Commit, an application may check the status of the InTransaction property. If an application calls Commit and there is no current transaction, an exception is raised.


© AidAim Software Accuracer: Client Server Single-file Bde Replacement Delphi Database Embedded Databas