mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
051dddd8df
Goes from rebuilding 483 objects to 165 when it's modified
32 lines
919 B
C++
32 lines
919 B
C++
#pragma once
|
|
|
|
#include <Parsers/IParserBase.h>
|
|
#include <Parsers/IAST_fwd.h>
|
|
#include <Parsers/CommonParsers.h>
|
|
#include <Parsers/ASTDictionaryAttributeDeclaration.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/// Parser for dictionary attribute declaration, similar with parser for table
|
|
/// column, but attributes has less parameters. Produces
|
|
/// ASTDictionaryAttributeDeclaration.
|
|
class ParserDictionaryAttributeDeclaration : public IParserBase
|
|
{
|
|
protected:
|
|
const char * getName() const override { return "attribute declaration"; }
|
|
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
|
};
|
|
|
|
|
|
/// Creates ASTExpressionList consists of dictionary attributes declaration.
|
|
class ParserDictionaryAttributeDeclarationList : public IParserBase
|
|
{
|
|
protected:
|
|
const char * getName() const override{ return "attribute declaration list"; }
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
|
};
|
|
|
|
}
|