aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/ASTForeignKeyDeclaration.h
blob: 43c5995055d17b688d3d9b05df4f0e1012d7e363 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <Parsers/IAST.h>

namespace DB
{

/*
 * Currently ignore the foreign key node, flesh it out when needed
 */
class ASTForeignKeyDeclaration : public IAST
{
public:
    String name;

    String getID(char) const override { return "Foreign Key"; }

    ASTPtr clone() const override
    {
        auto res = std::make_shared<ASTForeignKeyDeclaration>();
        res->name = name;
        return res;
    }
};

}