digiKam
Digikam::CoreDbTransaction Class Reference

Public Member Functions

 CoreDbTransaction ()
 
 CoreDbTransaction (CoreDbAccess *const access)
 
 ~CoreDbTransaction ()
 

Detailed Description

Convenience class: You can create a CoreDbTransaction object for a scope for which you want to declare a database commit. Equivalent to calling beginTransaction and commitTransaction on the album db.

Constructor & Destructor Documentation

◆ CoreDbTransaction() [1/2]

Digikam::CoreDbTransaction::CoreDbTransaction ( )

Retrieve a CoreDbAccess object each time when constructing and destructing.

References Digikam::CoreDbAccess::backend(), and Digikam::BdEngineBackend::beginTransaction().

◆ CoreDbTransaction() [2/2]

Digikam::CoreDbTransaction::CoreDbTransaction ( CoreDbAccess *const  access)
explicit

Use an existing CoreDbAccess object, which must live as long as this object exists.

References Digikam::CoreDbAccess::backend(), and Digikam::BdEngineBackend::beginTransaction().

◆ ~CoreDbTransaction()

Digikam::CoreDbTransaction::~CoreDbTransaction ( )

The documentation for this class was generated from the following files: