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

This commit is contained in:
Akkadius
2018-07-07 23:59:23 -05:00
parent 69f621f361
commit 41ab512349
12 changed files with 234 additions and 3 deletions
+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)