ClickHouse/src/Parsers/ASTCreateNamedCollectionQuery.h

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

29 lines
734 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IAST.h>
#include <Parsers/ASTQueryWithOnCluster.h>
2022-11-15 14:49:25 +00:00
#include <Common/SettingsChanges.h>
namespace DB
{
class ASTCreateNamedCollectionQuery : public IAST, public ASTQueryWithOnCluster
{
public:
std::string collection_name;
2022-11-15 14:49:25 +00:00
SettingsChanges changes;
String getID(char) const override { return "CreateNamedCollectionQuery"; }
ASTPtr clone() const override;
void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override;
ASTPtr getRewrittenASTWithoutOnCluster(const WithoutOnClusterASTRewriteParams &) const override { return removeOnCluster<ASTCreateNamedCollectionQuery>(clone()); }
std::string getCollectionName() const;
};
}