[Repositories] Add GetMaxId, Count (#2371)

* [Repositories] Add GetMaxId, Count

* Update cmake with repositories, regenerate extended repos

* Remove license from files

* Simplify receivers

* Receiver simplify remaining

* Simplify receivers final

* Pass params by const reference

* Modernize grid tables

* Remove guild members since it doesn't conform as a generatable table

* PR comment
This commit is contained in:
Chris Miles
2022-08-13 18:40:56 -05:00
committed by GitHub
parent b79e1947f1
commit 79285b1002
374 changed files with 26837 additions and 26020 deletions
+7 -2
View File
@@ -200,7 +200,7 @@ namespace WorldserverCommandHandler {
for (const auto &table: version_tables) {
version_tables_json.append(table);
}
Json::Value bot_tables_json;
std::vector<std::string> bot_tables = DatabaseSchema::GetBotTables();
for (const auto &table: bot_tables) {
@@ -429,7 +429,7 @@ namespace WorldserverCommandHandler {
}
/**
* Fetch all
* Insert Many
*/
int inserted_count = InstanceListRepository::InsertMany(database, instance_lists);
@@ -439,6 +439,11 @@ namespace WorldserverCommandHandler {
LogInfo("Iterating through entry id [{}] zone [{}]", entry.id, entry.zone);
}
LogInfo("[Max ID] {}", InstanceListRepository::GetMaxId(database));
LogInfo("[Count] {}", InstanceListRepository::Count(database));
LogInfo("[Count Where] {}", InstanceListRepository::Count(database, "zone = 999"));
LogInfo("[Count Where] {}", InstanceListRepository::Count(database, "zone = 777"));
/**
* Delete where
*/