2019-10-15 14:09:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Poco/Util/AbstractConfiguration.h>
|
|
|
|
#include <Parsers/ASTCreateQuery.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
using DictionaryConfigurationPtr = Poco::AutoPtr<Poco::Util::AbstractConfiguration>;
|
|
|
|
|
|
|
|
/// Convert dictionary AST to Poco::AbstractConfiguration
|
|
|
|
/// This function is necessary because all loadable objects configuration are Poco::AbstractConfiguration
|
2019-10-21 14:00:18 +00:00
|
|
|
/// Can throw exception if query is ill-formed
|
2020-04-21 18:02:36 +00:00
|
|
|
DictionaryConfigurationPtr getDictionaryConfigurationFromAST(const ASTCreateQuery & query, const std::string & database_ = "");
|
2019-10-15 14:09:57 +00:00
|
|
|
}
|