DBtransactionLevel

Top  Previous  Next

If delivers the transaction level.

Moskito puts in to every Workfile *.wf a transaction log *.tr. In this file all changes in the Workfile are carried along. As soon as a transaction is finished, the log file is physically written. After successful securing of the Workfiles at the end of a Moskito's meeting the log file is removed. If Moskito hits by the start on an available log file, Moskito has broken off before. And the Workfileinhalt is reconstructed with the help of the last valid transaction. Every transaction can be cancelled about access functions and be restored.

Every change it will should be taken down with DBtransactionStart initiated and with DBtransactionEnd concluded. Every call of these both functions dekrementiert and inkrementiert an internal counter. With this function the momentary level can be questioned. The level must be noted in the log file because it takes down the nesting from DBtransactionStart-and DBtransactionEnd calls.

Parametre

root (PROOT) [IN]

Act on the open data bank.

Result

(long int) [OUT]

If the momentary level brags.

Declaration

#include "database.h"

 

long int DLLENTRY DBtransactionLevel (

PROOT root

);

Related functions

DBtransactionData

DBtransactionEnd

DBtransactionStart

DBtransactionRollback

DBtransactionRollforward

DBtransactionSetUndoImpossible