| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <Poco/Util/XMLConfiguration.h> |
| 4 | #include <Core/Types.h> |
| 5 | #include <vector> |
| 6 | #include <string> |
| 7 | #include <map> |
| 8 | |
| 9 | namespace DB |
| 10 | { |
| 11 | |
| 12 | using StringToVector = std::map<std::string, Strings>; |
| 13 | using ConfigurationPtr = Poco::AutoPtr<Poco::Util::AbstractConfiguration>; |
| 14 | |
| 15 | void constructSubstitutions(ConfigurationPtr & substitutions_view, StringToVector & out_substitutions); |
| 16 | |
| 17 | Strings formatQueries(const std::string & query, StringToVector substitutions_to_generate); |
| 18 | |
| 19 | } |
| 20 |