mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
30 lines
654 B
C++
30 lines
654 B
C++
#pragma once
|
|
|
|
#include <Common/SettingsChanges.h>
|
|
#include <Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** SET query
|
|
*/
|
|
class ASTSetQuery : public IAST
|
|
{
|
|
public:
|
|
bool is_standalone = true; /// If false, this AST is a part of another query, such as SELECT.
|
|
|
|
SettingsChanges changes;
|
|
|
|
/** Get the text that identifies this element. */
|
|
String getID(char) const override { return "Set"; }
|
|
|
|
ASTPtr clone() const override { return std::make_shared<ASTSetQuery>(*this); }
|
|
|
|
void formatImpl(const FormatSettings & format, FormatState &, FormatStateStacked) const override;
|
|
|
|
void updateTreeHashImpl(SipHash & hash_state) const override;
|
|
};
|
|
|
|
}
|