Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTBase::GetTransactionMode

Declaration

CTBEGIN_MODE CTBase::GetTransactionMode()

Description

Returns the transaction mode used when starting a transaction.

c-tree Plus offers a rich array of data integrity options. Full transaction processing offers the safest and best performance of all the available options. There are times when other c-tree Plus options, such as PREIMG, might be advantageous.

Return Values

CTBEGIN_MODE Symbolic Constant

Description

CTBEGIN_NONE

No begin transaction mode set. Default mode apply.

CTBEGIN_PREIMG

Transaction atomicity only. Auto-recovery is not available. Mutually exclusive with CTBEGIN_TRNLOG.

CTBEGIN_TRNLOG

Full transaction processing functionality including auto-recovery. Mutually exclusive to CTBEGIN_PREIMG. This is the default begin transaction mode.

CTBEGIN_DEFER

Defer begin transaction until update.

CTBEGIN_AUTOSAVE

Automatically invokes savepoints after each successful record or resource update.

See Also

CTBase::GetTransactionMode()

TOCIndex