mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
27 lines
433 B
C++
27 lines
433 B
C++
|
#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;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
}
|