ClickHouse/src/Interpreters/Access/InterpreterCreateSettingsProfileQuery.h

27 lines
605 B
C++
Raw Normal View History

#pragma once
#include <Interpreters/IInterpreter.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
class ASTCreateSettingsProfileQuery;
struct SettingsProfile;
2021-05-31 14:49:02 +00:00
class InterpreterCreateSettingsProfileQuery : public IInterpreter, WithMutableContext
{
public:
2021-05-31 14:49:02 +00:00
InterpreterCreateSettingsProfileQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_) : WithMutableContext(context_), query_ptr(query_ptr_) {}
BlockIO execute() override;
static void updateSettingsProfileFromQuery(SettingsProfile & profile, const ASTCreateSettingsProfileQuery & query);
private:
ASTPtr query_ptr;
};
}