ClickHouse/src/Dictionaries/getDictionaryConfigurationFromAST.h

15 lines
538 B
C++
Raw Normal View History

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
DictionaryConfigurationPtr getDictionaryConfigurationFromAST(const ASTCreateQuery & query, const std::string & database_ = "");
2019-10-15 14:09:57 +00:00
}