Implemented qglobals replacement and/or alternative called "Data Buckets" see changelog for more details

This commit is contained in:
Akkadius committed 2018-07-07 23:59:23 -05:00
1 parent 69f621f361
commit 41ab512349
12 files changed
+234 -3

No files matched your search

+9
View File
@@ -1752,6 +1752,15 @@ void Database::ClearRaidDetails(uint32 rid) {
std::cout << "Unable to clear raid details: " << results.ErrorMessage() << std::endl;
}
void Database::PurgeAllDeletedDataBuckets() {
std::string query = StringFormat(
"DELETE FROM `data_buckets` WHERE (`expires` < %lld AND `expires` > 0)",
(long long) std::time(nullptr)
);
QueryDatabase(query);
}
// returns 0 on error or no raid for that character, or
// the raid id that the character is a member of.
uint32 Database::GetRaidID(const char* name)