2019-01-25 18:35:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Poco/Util/XMLConfiguration.h>
|
|
|
|
#include <Core/Types.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
2019-01-28 16:20:29 +00:00
|
|
|
#include <map>
|
2019-01-25 18:35:16 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2019-01-28 16:20:29 +00:00
|
|
|
using StringToVector = std::map<std::string, Strings>;
|
2019-01-25 18:35:16 +00:00
|
|
|
using ConfigurationPtr = Poco::AutoPtr<Poco::Util::AbstractConfiguration>;
|
|
|
|
|
|
|
|
void constructSubstitutions(ConfigurationPtr & substitutions_view, StringToVector & out_substitutions);
|
|
|
|
|
2019-01-28 16:20:29 +00:00
|
|
|
Strings formatQueries(const std::string & query, StringToVector substitutions_to_generate);
|
2019-01-25 18:35:16 +00:00
|
|
|
|
|
|
|
}
|