AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "DBUpdater.h"
Public Types | |
using | Path = std::filesystem::path |
Public Member Functions | |
std::string | GetConfigEntry () |
std::string | GetTableName () |
std::string | GetBaseFilesDirectory () |
bool | IsEnabled (uint32 const updateMask) |
std::string | GetDBModuleName () |
std::string | GetConfigEntry () |
std::string | GetTableName () |
std::string | GetBaseFilesDirectory () |
bool | IsEnabled (uint32 const updateMask) |
std::string | GetDBModuleName () |
std::string | GetConfigEntry () |
std::string | GetTableName () |
std::string | GetBaseFilesDirectory () |
bool | IsEnabled (uint32 const updateMask) |
std::string | GetDBModuleName () |
Static Public Member Functions | |
static std::string | GetConfigEntry () |
static std::string | GetTableName () |
static std::string | GetBaseFilesDirectory () |
static bool | IsEnabled (uint32 const updateMask) |
static BaseLocation | GetBaseLocationType () |
static bool | Create (DatabaseWorkerPool< T > &pool) |
static bool | Update (DatabaseWorkerPool< T > &pool, std::string_view modulesList={}) |
static bool | Update (DatabaseWorkerPool< T > &pool, std::vector< std::string > const *setDirectories) |
static bool | Populate (DatabaseWorkerPool< T > &pool) |
static std::string | GetDBModuleName () |
Static Private Member Functions | |
static QueryResult | Retrieve (DatabaseWorkerPool< T > &pool, std::string const &query) |
static void | Apply (DatabaseWorkerPool< T > &pool, std::string const &query) |
static void | ApplyFile (DatabaseWorkerPool< T > &pool, Path const &path) |
static void | ApplyFile (DatabaseWorkerPool< T > &pool, std::string const &host, std::string const &user, std::string const &password, std::string const &port_or_socket, std::string const &database, std::string const &ssl, Path const &path) |
using DBUpdater< T >::Path = std::filesystem::path |
|
staticprivate |
References DatabaseWorkerPool< T >::DirectExecute().
Referenced by DBUpdater< T >::Update().
|
staticprivate |
References DBUpdater< T >::ApplyFile(), MySQLConnectionInfo::database, DatabaseWorkerPool< T >::GetConnectionInfo(), MySQLConnectionInfo::host, MySQLConnectionInfo::password, MySQLConnectionInfo::port_or_socket, MySQLConnectionInfo::ssl, and MySQLConnectionInfo::user.
Referenced by DBUpdater< T >::ApplyFile(), DBUpdater< T >::Create(), and DBUpdater< T >::Update().
|
staticprivate |
References Acore::String::AddSuffixIfNotExists(), MySQLConnectionInfo::database, DatabaseWorkerPool< T >::GetConnectionInfo(), DBUpdaterUtil::GetCorrectedMySQLExecutable(), LOG_FATAL, sConfigMgr, Acore::StartProcess(), and Acore::StringFormat().
|
static |
References DBUpdater< T >::ApplyFile(), MySQLConnectionInfo::database, DatabaseWorkerPool< T >::GetConnectionInfo(), MySQLConnectionInfo::host, LOG_FATAL, LOG_INFO, LOG_WARN, MySQLConnectionInfo::password, MySQLConnectionInfo::port_or_socket, sConfigMgr, MySQLConnectionInfo::ssl, and MySQLConnectionInfo::user.
std::string DBUpdater< LoginDatabaseConnection >::GetBaseFilesDirectory | ( | ) |
References BuiltInConfig::GetSourceDirectory().
std::string DBUpdater< WorldDatabaseConnection >::GetBaseFilesDirectory | ( | ) |
References BuiltInConfig::GetSourceDirectory().
std::string DBUpdater< CharacterDatabaseConnection >::GetBaseFilesDirectory | ( | ) |
References BuiltInConfig::GetSourceDirectory().
|
static |
Referenced by DBUpdater< T >::Populate().
|
static |
References LOCATION_REPOSITORY.
std::string DBUpdater< LoginDatabaseConnection >::GetConfigEntry | ( | ) |
std::string DBUpdater< WorldDatabaseConnection >::GetConfigEntry | ( | ) |
std::string DBUpdater< CharacterDatabaseConnection >::GetConfigEntry | ( | ) |
|
inlinestatic |
std::string DBUpdater< LoginDatabaseConnection >::GetDBModuleName | ( | ) |
std::string DBUpdater< WorldDatabaseConnection >::GetDBModuleName | ( | ) |
std::string DBUpdater< CharacterDatabaseConnection >::GetDBModuleName | ( | ) |
|
static |
Referenced by DBUpdater< T >::Update().
std::string DBUpdater< LoginDatabaseConnection >::GetTableName | ( | ) |
std::string DBUpdater< WorldDatabaseConnection >::GetTableName | ( | ) |
std::string DBUpdater< CharacterDatabaseConnection >::GetTableName | ( | ) |
|
inlinestatic |
bool DBUpdater< LoginDatabaseConnection >::IsEnabled | ( | uint32 const | updateMask | ) |
References DatabaseLoader::DATABASE_LOGIN.
bool DBUpdater< WorldDatabaseConnection >::IsEnabled | ( | uint32 const | updateMask | ) |
References DatabaseLoader::DATABASE_WORLD.
bool DBUpdater< CharacterDatabaseConnection >::IsEnabled | ( | uint32 const | updateMask | ) |
References DatabaseLoader::DATABASE_CHARACTER.
Referenced by DatabaseLoader::AddDatabase().
|
static |
References DBUpdaterUtil::CheckExecutable(), DBUpdater< T >::GetBaseFilesDirectory(), LOG_ERROR, and LOG_INFO.
|
staticprivate |
References DatabaseWorkerPool< T >::Query().
Referenced by DBUpdater< T >::Update().
|
static |
References DBUpdater< T >::Apply(), DBUpdater< T >::ApplyFile(), DBUpdaterUtil::CheckExecutable(), MySQLConnectionInfo::database, DatabaseWorkerPool< T >::GetConnectionInfo(), DBUpdater< T >::GetDBModuleName(), BuiltInConfig::GetSourceDirectory(), LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_WARN, DBUpdater< T >::Retrieve(), sConfigMgr, and Acore::StringFormat().
|
static |
References DBUpdater< T >::Apply(), DBUpdater< T >::ApplyFile(), DBUpdaterUtil::CheckExecutable(), DBUpdater< T >::GetDBModuleName(), BuiltInConfig::GetSourceDirectory(), DBUpdater< T >::Retrieve(), sConfigMgr, and Acore::StringFormat().