18 #ifndef DatabaseLoader_h__
19 #define DatabaseLoader_h__
47 DATABASE_CHARACTER = 2,
51 DATABASE_MASK_ALL = DATABASE_LOGIN | DATABASE_CHARACTER | DATABASE_WORLD | DATABASE_HOTFIX
56 bool PopulateDatabases();
57 bool UpdateDatabases();
58 bool PrepareStatements();
61 using Closer = std::function<void()>;
65 bool Process(std::queue<Predicate>& queue);
71 std::queue<Predicate> _open, _populate,
_update, _prepare;
75 #endif // DatabaseLoader_h__
#define TC_DATABASE_API
Definition: Define.h:122
DatabaseTypeFlags
Definition: DatabaseLoader.h:42
std::queue< Predicate > _update
Definition: DatabaseLoader.h:71
bool const _autoSetup
Definition: DatabaseLoader.h:68
std::function< void()> Closer
Definition: DatabaseLoader.h:61
uint32 const _updateFlags
Definition: DatabaseLoader.h:69
Definition: DatabaseLoader.h:30
std::function< bool()> Predicate
Definition: DatabaseLoader.h:60
uint32_t uint32
Definition: Define.h:150
std::stack< Closer > _close
Definition: DatabaseLoader.h:72
std::string const _logger
Definition: DatabaseLoader.h:67
Definition: DatabaseWorkerPool.h:48