mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
[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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user