MythTV  master
Typedefs | Functions
mythdbcheck.h File Reference
#include <string>
#include <vector>
#include "mythbaseexp.h"
Include dependency graph for mythdbcheck.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using DBUpdates = std::vector< std::string >
 

Functions

MBASE_PUBLIC bool performActualUpdate (const QString &component, const QString &versionkey, const DBUpdates &updates, const QString &version, QString &dbver)
 
MBASE_PUBLIC bool performUpdateSeries (const QString &component, const DBUpdates &updates)
 
MBASE_PUBLIC bool UpdateDBVersionNumber (const QString &component, const QString &versionkey, const QString &newnumber, QString &dbver)
 Updates the schema version stored in the database. More...
 

Typedef Documentation

◆ DBUpdates

using DBUpdates = std::vector<std::string>

Definition at line 9 of file mythdbcheck.h.

Function Documentation

◆ performActualUpdate()

MBASE_PUBLIC bool performActualUpdate ( const QString &  component,
const QString &  versionkey,
const DBUpdates updates,
const QString &  version,
QString &  dbver 
)

◆ performUpdateSeries()

MBASE_PUBLIC bool performUpdateSeries ( const QString &  component,
const DBUpdates updates 
)

Definition at line 81 of file dbcheckcommon.cpp.

Referenced by doUpgradeTVDatabaseSchema(), and performActualUpdate().

◆ UpdateDBVersionNumber()

MBASE_PUBLIC bool UpdateDBVersionNumber ( const QString &  component,
const QString &  versionkey,
const QString &  newnumber,
QString &  dbver 
)

Updates the schema version stored in the database.

Updates "DBSchemaVer" property in the settings table.

Parameters
componentName of componenet being updated. Used for messages.
versionkeyThe name of the key for the schema version.
newnumberNew schema version.
dbverthe database version at the end of the function is returned in this parameter, if things go well this will be 'newnumber'.

Definition at line 29 of file dbcheckcommon.cpp.

Referenced by doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), and performActualUpdate().