24 #include <boost/filesystem.hpp>
32 char const*
what()
const throw()
override {
return _msg.c_str(); }
47 : updated(0), recent(0), archived(0) { }
49 UpdateResult(
size_t const updated_,
size_t const recent_,
size_t const archived_)
50 : updated(updated_), recent(recent_), archived(archived_) { }
72 using Path = boost::filesystem::path;
74 static inline std::string GetConfigEntry();
78 static std::string GetBaseFile();
80 static bool IsEnabled(
uint32 const updateMask);
95 std::string
const& password, std::string
const& port_or_socket, std::string
const& database,
Path const& path);
98 #endif // DBUpdater_h__
Definition: DBUpdater.h:41
Definition: DBUpdater.h:26
#define TC_DATABASE_API
Definition: Define.h:122
~UpdateException()
Definition: DBUpdater.h:30
size_t recent
Definition: DBUpdater.h:53
Definition: DBUpdater.h:57
BaseLocation
Definition: DBUpdater.h:38
size_t archived
Definition: DBUpdater.h:54
std::string const _msg
Definition: DBUpdater.h:35
char * query(struct soap *soap)
Definition: httpget.cpp:244
Definition: DBUpdater.h:40
static bool CheckExecutable()
Definition: DBUpdater.cpp:47
Definition: DBUpdater.h:44
boost::filesystem::path Path
Definition: DBUpdater.h:72
uint32_t uint32
Definition: Define.h:150
std::shared_ptr< ResultSet > QueryResult
Definition: QueryResult.h:61
char const * what() const override
Definition: DBUpdater.h:32
std::string GetTableName(std::string const &str)
Definition: PlayerDump.cpp:127
static std::string GetCorrectedMySQLExecutable()
Definition: DBUpdater.cpp:39
Definition: DBUpdater.h:69
UpdateResult()
Definition: DBUpdater.h:46
size_t updated
Definition: DBUpdater.h:52
Definition: DatabaseWorkerPool.h:48
static std::string & corrected_path()
Definition: DBUpdater.cpp:77
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
UpdateException(std::string const &msg)
Definition: DBUpdater.h:29
UpdateResult(size_t const updated_, size_t const recent_, size_t const archived_)
Definition: DBUpdater.h:49