mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
22 lines
455 B
C++
22 lines
455 B
C++
#include "../../common/repositories/zone_repository.h"
|
|
|
|
void WorldserverCLI::TestRepository2(int argc, char **argv, argh::parser &cmd, std::string &description)
|
|
{
|
|
description = "Test command";
|
|
|
|
if (cmd[{"-h", "--help"}]) {
|
|
return;
|
|
}
|
|
|
|
auto zones = ZoneRepository::GetWhere(content_db, "short_name = 'anguish'");
|
|
|
|
for (auto &zone: zones) {
|
|
LogInfo(
|
|
"Zone [{}] long_name [{}] id [{}]",
|
|
zone.short_name,
|
|
zone.long_name,
|
|
zone.id
|
|
);
|
|
}
|
|
}
|