Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
QH::DBPatch Struct Reference

DBPatch This is function that should be upgrade database. More...

#include <dbpatch.h>

Collaboration diagram for QH::DBPatch:
Collaboration graph

Public Member Functions

bool isValid () const
 isValid This method check this oject to valid.
 

Public Attributes

unsigned short versionFrom = 0
 
unsigned short versionTo = 0
 
std::function< bool(QH::iObjectProvider *)> action
 This is lymbda function with action that will upgrade data base to new versio.
 

Detailed Description

DBPatch This is function that should be upgrade database.

See also
DBPatchMap
DataBaseNode::dbPatch
Note
version is version number of the current database. After execute this path version of data base will be increment.

Definition at line 25 of file dbpatch.h.

Member Function Documentation

◆ isValid()

bool QH::DBPatch::isValid ( ) const

isValid This method check this oject to valid.

Returns
true if object is valid else false.

Definition at line 12 of file dbpatch.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ action

std::function<bool (QH::iObjectProvider *)> QH::DBPatch::action

This is lymbda function with action that will upgrade data base to new versio.

Definition at line 35 of file dbpatch.h.

◆ versionFrom

unsigned short QH::DBPatch::versionFrom = 0

This is version of data base that need to up. For example - we has a data base with version 1 and we want to upgrade to version 2 then you need to set cersion field version to 1.

Definition at line 28 of file dbpatch.h.

◆ versionTo

unsigned short QH::DBPatch::versionTo = 0

This is version of data base that need to up. For example - we has a data base with version 1 and we want to upgrade to version 2 then you need to set cersion field version to 1.

Definition at line 32 of file dbpatch.h.


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