AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DBUpdater< T > Class Template Reference

#include "DBUpdater.h"

Public Types

using Path = std::filesystem::path
 

Public Member Functions

std::string GetConfigEntry ()
 
std::string GetTableName ()
 
std::string GetSourceDirectory ()
 
std::string GetBaseFilesDirectory ()
 
bool IsEnabled (uint32 const updateMask)
 
std::string GetDBModuleName ()
 
std::string GetConfigEntry ()
 
std::string GetTableName ()
 
std::string GetSourceDirectory ()
 
std::string GetBaseFilesDirectory ()
 
bool IsEnabled (uint32 const updateMask)
 
std::string GetDBModuleName ()
 
std::string GetConfigEntry ()
 
std::string GetTableName ()
 
std::string GetSourceDirectory ()
 
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 GetSourceDirectory ()
 
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 DBUpdaterInfo GetUpdaterInfo ()
 

Detailed Description

template<class T>
class DBUpdater< T >

Member Typedef Documentation

◆ Path

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

Member Function Documentation

◆ Create()

template<class T >
bool DBUpdater< T >::Create ( DatabaseWorkerPool< T > &  pool)
static
594{
595 DatabaseWorkerPoolAdapter<T> adapter(pool);
596 return CreateDatabase(adapter);
597}
Definition DatabaseWorkerPoolAdapter.h:26

◆ GetBaseFilesDirectory() [1/4]

std::string DBUpdater< LoginDatabaseConnection >::GetBaseFilesDirectory ( )
105{
106 return DBUpdater<LoginDatabaseConnection>::GetSourceDirectory() + "/data/sql/base/db_auth/";
107}
static std::string GetSourceDirectory()

References DBUpdater< T >::GetSourceDirectory().

◆ GetBaseFilesDirectory() [2/4]

std::string DBUpdater< WorldDatabaseConnection >::GetBaseFilesDirectory ( )
144{
145 return DBUpdater<WorldDatabaseConnection>::GetSourceDirectory() + "/data/sql/base/db_world/";
146}

References DBUpdater< T >::GetSourceDirectory().

◆ GetBaseFilesDirectory() [3/4]

std::string DBUpdater< CharacterDatabaseConnection >::GetBaseFilesDirectory ( )
183{
184 return DBUpdater<CharacterDatabaseConnection>::GetSourceDirectory() + "/data/sql/base/db_characters/";
185}

References DBUpdater< T >::GetSourceDirectory().

◆ GetBaseFilesDirectory() [4/4]

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

◆ GetBaseLocationType()

template<class T >
BaseLocation DBUpdater< T >::GetBaseLocationType ( )
static
204{
205 return LOCATION_REPOSITORY;
206}
@ LOCATION_REPOSITORY
Definition DBUpdater.h:52

References LOCATION_REPOSITORY.

◆ GetConfigEntry() [1/4]

std::string DBUpdater< LoginDatabaseConnection >::GetConfigEntry ( )
87{
88 return "Updates.Auth";
89}

◆ GetConfigEntry() [2/4]

std::string DBUpdater< WorldDatabaseConnection >::GetConfigEntry ( )
126{
127 return "Updates.World";
128}

◆ GetConfigEntry() [3/4]

std::string DBUpdater< CharacterDatabaseConnection >::GetConfigEntry ( )
165{
166 return "Updates.Character";
167}

◆ GetConfigEntry() [4/4]

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

◆ GetDBModuleName() [1/4]

std::string DBUpdater< LoginDatabaseConnection >::GetDBModuleName ( )
118{
119 // must be lowercase
120 return "auth";
121}

◆ GetDBModuleName() [2/4]

std::string DBUpdater< WorldDatabaseConnection >::GetDBModuleName ( )
157{
158 // must be lowercase
159 return "world";
160}

◆ GetDBModuleName() [3/4]

std::string DBUpdater< CharacterDatabaseConnection >::GetDBModuleName ( )
196{
197 // must be lowercase
198 return "characters";
199}

◆ GetDBModuleName() [4/4]

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

◆ GetSourceDirectory() [1/4]

std::string DBUpdater< LoginDatabaseConnection >::GetSourceDirectory ( )
99{
101}
AC_COMMON_API std::string GetSourceDirectory()
Definition BuiltInConfig.cpp:42

References BuiltInConfig::GetSourceDirectory().

◆ GetSourceDirectory() [2/4]

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

◆ GetSourceDirectory() [3/4]

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

◆ GetSourceDirectory() [4/4]

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

◆ GetTableName() [1/4]

std::string DBUpdater< LoginDatabaseConnection >::GetTableName ( )
93{
94 return "Auth";
95}

◆ GetTableName() [2/4]

std::string DBUpdater< WorldDatabaseConnection >::GetTableName ( )
132{
133 return "World";
134}

◆ GetTableName() [3/4]

std::string DBUpdater< CharacterDatabaseConnection >::GetTableName ( )
171{
172 return "Character";
173}

◆ GetTableName() [4/4]

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

◆ GetUpdaterInfo()

template<class T >
DBUpdaterInfo DBUpdater< T >::GetUpdaterInfo ( )
staticprivate
588{
590}
static std::string GetTableName()
static std::string GetBaseFilesDirectory()
static std::string GetDBModuleName()

References GetTableName().

◆ IsEnabled() [1/4]

bool DBUpdater< LoginDatabaseConnection >::IsEnabled ( uint32 const  updateMask)
111{
112 // This way silences warnings under msvc
113 return (updateMask & DatabaseLoader::DATABASE_LOGIN) ? true : false;
114}
@ DATABASE_LOGIN
Definition DatabaseLoader.h:48

References DatabaseLoader::DATABASE_LOGIN.

◆ IsEnabled() [2/4]

bool DBUpdater< WorldDatabaseConnection >::IsEnabled ( uint32 const  updateMask)
150{
151 // This way silences warnings under msvc
152 return (updateMask & DatabaseLoader::DATABASE_WORLD) ? true : false;
153}
@ DATABASE_WORLD
Definition DatabaseLoader.h:50

References DatabaseLoader::DATABASE_WORLD.

◆ IsEnabled() [3/4]

bool DBUpdater< CharacterDatabaseConnection >::IsEnabled ( uint32 const  updateMask)
189{
190 // This way silences warnings under msvc
191 return (updateMask & DatabaseLoader::DATABASE_CHARACTER) ? true : false;
192}
@ DATABASE_CHARACTER
Definition DatabaseLoader.h:49

References DatabaseLoader::DATABASE_CHARACTER.

◆ IsEnabled() [4/4]

template<class T >
static bool DBUpdater< T >::IsEnabled ( uint32 const  updateMask)
static

◆ Populate()

template<class T >
bool DBUpdater< T >::Populate ( DatabaseWorkerPool< T > &  pool)
static
615{
616 DatabaseWorkerPoolAdapter<T> adapter(pool);
617 return PopulateDatabase(adapter, GetUpdaterInfo());
618}
static DBUpdaterInfo GetUpdaterInfo()
Definition DBUpdater.cpp:587

◆ Update() [1/2]

template<class T >
bool DBUpdater< T >::Update ( DatabaseWorkerPool< T > &  pool,
std::string_view  modulesList = {} 
)
static
601{
602 DatabaseWorkerPoolAdapter<T> adapter(pool);
603 return UpdateDatabase(adapter, GetUpdaterInfo(), modulesList);
604}

◆ Update() [2/2]

template<class T >
bool DBUpdater< T >::Update ( DatabaseWorkerPool< T > &  pool,
std::vector< std::string > const *  setDirectories 
)
static
608{
609 DatabaseWorkerPoolAdapter<T> adapter(pool);
610 return UpdateDatabase(adapter, GetUpdaterInfo(), setDirectories);
611}

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