1 | #pragma once |
---|---|
2 | |
3 | #include <Parsers/IAST.h> |
4 | |
5 | namespace DB |
6 | { |
7 | |
8 | /** name CHECK logical_expr |
9 | */ |
10 | class ASTConstraintDeclaration : public IAST |
11 | { |
12 | public: |
13 | String name; |
14 | IAST * expr; |
15 | |
16 | String getID(char) const override { return "Constraint"; } |
17 | |
18 | ASTPtr clone() const override; |
19 | |
20 | void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override; |
21 | }; |
22 | } |
23 |