Heart
1.4.984.b4712811
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
dbpatch.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018-2027 QuasarApp.
3
* Distributed under the lgplv3 software license, see the accompanying
4
* Everyone is permitted to copy and distribute verbatim copies
5
* of this license document, but changing it is not allowed.
6
*/
7
8
#ifndef DBPATCH_H
9
#define DBPATCH_H
10
11
#include "heart_global.h"
12
#include "
iobjectprovider.h
"
13
14
15
namespace
QH
{
16
17
26
struct
HEARTSHARED_EXPORT
DBPatch
{
29
unsigned
short
versionFrom
= 0;
30
33
unsigned
short
versionTo
= 0;
34
36
std::function<bool (
QH::iObjectProvider
*)>
action
;
37
42
bool
isValid
()
const
;
43
};
44
50
typedef
QMap<unsigned short, QMap<unsigned short, DBPatch>>
DBPatchMap
;
51
}
52
#endif
// DBPATCH_H
QH::iObjectProvider
The iObjectProvider class is base interface for work with database objects. Using on database writers...
Definition
iobjectprovider.h:25
iobjectprovider.h
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
QH::DBPatchMap
QMap< unsigned short, QMap< unsigned short, DBPatch > > DBPatchMap
DBPatchMap This is 2 depch map of the DBPatch structure when the first key it is version (from) and s...
Definition
dbpatch.h:50
QH::DBPatch
DBPatch This is function that should be upgrade database.
Definition
dbpatch.h:26
QH::DBPatch::versionFrom
unsigned short versionFrom
Definition
dbpatch.h:29
QH::DBPatch::action
std::function< bool(QH::iObjectProvider *)> action
This is lymbda function with action that will upgrade data base to new version.
Definition
dbpatch.h:36
QH::DBPatch::isValid
bool isValid() const
isValid This method check this object to valid.
Definition
dbpatch.cpp:12
QH::DBPatch::versionTo
unsigned short versionTo
Definition
dbpatch.h:33
src
public
dbpatch.h
Generated by
1.18.0