1 | #pragma once |
---|---|
2 | |
3 | #include <Poco/Util/AbstractConfiguration.h> |
4 | #include <Parsers/ASTCreateQuery.h> |
5 | |
6 | namespace DB |
7 | { |
8 | using DictionaryConfigurationPtr = Poco::AutoPtr<Poco::Util::AbstractConfiguration>; |
9 | |
10 | /// Convert dictionary AST to Poco::AbstractConfiguration |
11 | /// This function is necessary because all loadable objects configuration are Poco::AbstractConfiguration |
12 | /// Can throw exception if query is ill-formed |
13 | DictionaryConfigurationPtr getDictionaryConfigurationFromAST(const ASTCreateQuery & query); |
14 | |
15 | } |
16 |