32 TC_LOG_INFO(
"misc",
"Cleaning character database...");
79 std::ostringstream ss;
82 Field* fields = result->Fetch();
90 ss <<
"DELETE FROM " << table <<
" WHERE " << column <<
" IN (";
99 while (result->NextRow());
155 CharacterDatabase.DirectExecute(
"DELETE FROM character_queststatus WHERE status = 0");
DBCStorage< AchievementCriteriaEntry > sAchievementCriteriaStore(AchievementCriteriafmt)
DBCStorage< TalentTabEntry > sTalentTabStore(TalentTabEntryfmt)
TalentSpellPos const * GetTalentSpellPos(uint32 spellId)
DBCStorage< SkillLineEntry > sSkillLineStore(SkillLinefmt)
DBCStorage< TalentEntry > sTalentStore(TalentEntryfmt)
std::shared_ptr< ResultSet > QueryResult
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
#define TC_LOG_INFO(filterType__,...)
#define MAX_TALENT_GROUPS
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
Class used to access individual fields of database query result.
@ CONFIG_PERSISTENT_CHARACTER_CLEAN_FLAGS
@ CONFIG_CLEAN_CHARACTER_DB
TC_GAME_API bool SpellCheck(uint32 spell_id)
TC_GAME_API bool SkillCheck(uint32 skill)
TC_GAME_API void CleanCharacterTalent()
TC_GAME_API void CleanDatabase()
TC_GAME_API void CheckUnique(char const *column, char const *table, bool(*check)(uint32))
TC_GAME_API void CleanCharacterQuestStatus()
TC_GAME_API bool TalentCheck(uint32 talent_id)
TC_GAME_API void CleanCharacterSpell()
@ CLEANING_FLAG_QUESTSTATUS
@ CLEANING_FLAG_ACHIEVEMENT_PROGRESS
TC_GAME_API void CleanCharacterAchievementProgress()
TC_GAME_API void CleanCharacterSkills()
TC_GAME_API bool AchievementProgressCheck(uint32 criteria)