| 6 | namespace DB |
| 7 | { |
| 8 | std::vector<std::string> getMultipleKeysFromConfig(const Poco::Util::AbstractConfiguration & config, const std::string & root, const std::string & name) |
| 9 | { |
| 10 | std::vector<std::string> values; |
| 11 | Poco::Util::AbstractConfiguration::Keys config_keys; |
| 12 | config.keys(root, config_keys); |
| 13 | for (const auto & key : config_keys) |
| 14 | { |
| 15 | if (key != name && !(startsWith(key, name + "[") && endsWith(key, "]"))) |
| 16 | continue; |
| 17 | values.emplace_back(key); |
| 18 | } |
| 19 | return values; |
| 20 | } |
| 21 | |
| 22 | |
| 23 | std::vector<std::string> getMultipleValuesFromConfig(const Poco::Util::AbstractConfiguration & config, const std::string & root, const std::string & name) |
no test coverage detected