mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-01 06:00:49 +00:00
28 lines
561 B
C++
28 lines
561 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTFunction.h>
|
|
#include <Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** name BY expr TYPE typename(args) GRANULARITY int in create query
|
|
*/
|
|
class ASTIndexDeclaration : public IAST
|
|
{
|
|
public:
|
|
String name;
|
|
IAST * expr;
|
|
ASTFunction * type;
|
|
UInt64 granularity;
|
|
|
|
/** Get the text that identifies this element. */
|
|
String getID(char) const override { return "Index"; }
|
|
|
|
ASTPtr clone() const override;
|
|
void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override;
|
|
};
|
|
|
|
}
|