ClickHouse/src/Parsers/ASTProjectionDeclaration.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
571 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IAST.h>
namespace DB
{
/** name (subquery)
*/
class ASTProjectionDeclaration : public IAST
{
public:
String name;
IAST * query;
/** Get the text that identifies this element. */
String getID(char) const override { return "Projection"; }
ASTPtr clone() const override;
void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override;
2023-03-11 19:16:06 +00:00
void forEachPointerToChild(std::function<void(void**)> f) override
{
f(reinterpret_cast<void **>(&query));
}
};
}