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