TrinityCore
DBUpdater< T > Class Template Reference

#include <DBUpdater.h>

Public Types

using Path = boost::filesystem::path
 

Public Member Functions

std::string GetConfigEntry ()
 
std::string GetTableName ()
 
std::string GetBaseFile ()
 
bool IsEnabled (uint32 const updateMask)
 
std::string GetConfigEntry ()
 
std::string GetTableName ()
 
std::string GetBaseFile ()
 
bool IsEnabled (uint32 const updateMask)
 
BaseLocation GetBaseLocationType ()
 
std::string GetConfigEntry ()
 
std::string GetTableName ()
 
std::string GetBaseFile ()
 
bool IsEnabled (uint32 const updateMask)
 
std::string GetConfigEntry ()
 
std::string GetTableName ()
 
std::string GetBaseFile ()
 
bool IsEnabled (uint32 const updateMask)
 
BaseLocation GetBaseLocationType ()
 

Static Public Member Functions

static std::string GetConfigEntry ()
 
static std::string GetTableName ()
 
static std::string GetBaseFile ()
 
static bool IsEnabled (uint32 const updateMask)
 
static BaseLocation GetBaseLocationType ()
 
static bool Create (DatabaseWorkerPool< T > &pool)
 
static bool Update (DatabaseWorkerPool< T > &pool)
 
static bool Populate (DatabaseWorkerPool< T > &pool)
 

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)
 

Detailed Description

template<class T>
class DBUpdater< T >

Definition at line 66 of file DBUpdater.h.

Member Typedef Documentation

◆ Path

template<class T >
using DBUpdater< T >::Path = boost::filesystem::path

Definition at line 69 of file DBUpdater.h.

Member Function Documentation

◆ Apply()

template<class T >
void DBUpdater< T >::Apply ( DatabaseWorkerPool< T > &  pool,
std::string const &  query 
)
staticprivate

Definition at line 349 of file DBUpdater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyFile() [1/2]

template<class T >
void DBUpdater< T >::ApplyFile ( DatabaseWorkerPool< T > &  pool,
Path const &  path 
)
staticprivate

Definition at line 355 of file DBUpdater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyFile() [2/2]

template<class T >
void DBUpdater< T >::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 
)
staticprivate

Definition at line 362 of file DBUpdater.cpp.

+ Here is the call graph for this function:

◆ Create()

template<class T >
bool DBUpdater< T >::Create ( DatabaseWorkerPool< T > &  pool)
static

Definition at line 193 of file DBUpdater.cpp.

+ Here is the call graph for this function:

◆ GetBaseFile() [1/5]

std::string DBUpdater< LoginDatabaseConnection >::GetBaseFile ( )

Definition at line 81 of file DBUpdater.cpp.

+ Here is the call graph for this function:

◆ GetBaseFile() [2/5]

std::string DBUpdater< WorldDatabaseConnection >::GetBaseFile ( )

Definition at line 108 of file DBUpdater.cpp.

+ Here is the call graph for this function:

◆ GetBaseFile() [3/5]

std::string DBUpdater< CharacterDatabaseConnection >::GetBaseFile ( )

Definition at line 140 of file DBUpdater.cpp.

+ Here is the call graph for this function:

◆ GetBaseFile() [4/5]

std::string DBUpdater< HotfixDatabaseConnection >::GetBaseFile ( )

Definition at line 167 of file DBUpdater.cpp.

+ Here is the call graph for this function:

◆ GetBaseFile() [5/5]

template<class T >
static std::string DBUpdater< T >::GetBaseFile ( )
static
+ Here is the caller graph for this function:

◆ GetBaseLocationType() [1/3]

BaseLocation DBUpdater< WorldDatabaseConnection >::GetBaseLocationType ( )

Definition at line 121 of file DBUpdater.cpp.

◆ GetBaseLocationType() [2/3]

BaseLocation DBUpdater< HotfixDatabaseConnection >::GetBaseLocationType ( )

Definition at line 180 of file DBUpdater.cpp.

◆ GetBaseLocationType() [3/3]

template<class T >
BaseLocation DBUpdater< T >::GetBaseLocationType
static

Definition at line 187 of file DBUpdater.cpp.

◆ GetConfigEntry() [1/5]

std::string DBUpdater< LoginDatabaseConnection >::GetConfigEntry ( )

Definition at line 69 of file DBUpdater.cpp.

◆ GetConfigEntry() [2/5]

std::string DBUpdater< WorldDatabaseConnection >::GetConfigEntry ( )

Definition at line 96 of file DBUpdater.cpp.

◆ GetConfigEntry() [3/5]

std::string DBUpdater< CharacterDatabaseConnection >::GetConfigEntry ( )

Definition at line 128 of file DBUpdater.cpp.

◆ GetConfigEntry() [4/5]

std::string DBUpdater< HotfixDatabaseConnection >::GetConfigEntry ( )

Definition at line 155 of file DBUpdater.cpp.

◆ GetConfigEntry() [5/5]

template<class T >
static std::string DBUpdater< T >::GetConfigEntry ( )
inlinestatic

◆ GetTableName() [1/5]

std::string DBUpdater< LoginDatabaseConnection >::GetTableName ( )

Definition at line 75 of file DBUpdater.cpp.

◆ GetTableName() [2/5]

std::string DBUpdater< WorldDatabaseConnection >::GetTableName ( )

Definition at line 102 of file DBUpdater.cpp.

◆ GetTableName() [3/5]

std::string DBUpdater< CharacterDatabaseConnection >::GetTableName ( )

Definition at line 134 of file DBUpdater.cpp.

◆ GetTableName() [4/5]

std::string DBUpdater< HotfixDatabaseConnection >::GetTableName ( )

Definition at line 161 of file DBUpdater.cpp.

◆ GetTableName() [5/5]

template<class T >
static std::string DBUpdater< T >::GetTableName ( )
inlinestatic

◆ IsEnabled() [1/5]

bool DBUpdater< LoginDatabaseConnection >::IsEnabled ( uint32 const  updateMask)

Definition at line 88 of file DBUpdater.cpp.

◆ IsEnabled() [2/5]

bool DBUpdater< WorldDatabaseConnection >::IsEnabled ( uint32 const  updateMask)

Definition at line 114 of file DBUpdater.cpp.

◆ IsEnabled() [3/5]

bool DBUpdater< CharacterDatabaseConnection >::IsEnabled ( uint32 const  updateMask)

Definition at line 147 of file DBUpdater.cpp.

◆ IsEnabled() [4/5]

bool DBUpdater< HotfixDatabaseConnection >::IsEnabled ( uint32 const  updateMask)

Definition at line 173 of file DBUpdater.cpp.

◆ IsEnabled() [5/5]

template<class T >
static bool DBUpdater< T >::IsEnabled ( uint32 const  updateMask)
static
+ Here is the caller graph for this function:

◆ Populate()

template<class T >
bool DBUpdater< T >::Populate ( DatabaseWorkerPool< T > &  pool)
static

Definition at line 283 of file DBUpdater.cpp.

+ Here is the call graph for this function:

◆ Retrieve()

template<class T >
QueryResult DBUpdater< T >::Retrieve ( DatabaseWorkerPool< T > &  pool,
std::string const &  query 
)
staticprivate

Definition at line 343 of file DBUpdater.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update()

template<class T >
bool DBUpdater< T >::Update ( DatabaseWorkerPool< T > &  pool)
static

Definition at line 238 of file DBUpdater.cpp.

+ Here is the call graph for this function:

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