Add command #gearup as a fairly decent start to a expansion specific way of gearing up a GM test character

This commit is contained in:
Akkadius
2020-07-30 21:10:15 -05:00
parent a307636962
commit cfa3e88bb2
5 changed files with 149041 additions and 0 deletions
+7
View File
@@ -83,6 +83,13 @@ MySQLRequestResult DBcore::QueryDatabase(std::string query, bool retryOnFailureO
return QueryDatabase(query.c_str(), query.length(), retryOnFailureOnce);
}
bool DBcore::DoesTableExist(std::string table_name)
{
auto results = QueryDatabase(fmt::format("SHOW TABLES LIKE '{}'", table_name));
return results.RowCount() > 0;
}
MySQLRequestResult DBcore::QueryDatabase(const char *query, uint32 querylen, bool retryOnFailureOnce)
{
BenchTimer timer;
+2
View File
@@ -35,6 +35,8 @@ public:
const std::string &GetOriginHost() const;
void SetOriginHost(const std::string &origin_host);
bool DoesTableExist(std::string table_name);
protected:
bool Open(
const char *iHost,