ClickHouse/dbms/src/Interpreters/InterpreterAlterQuery.h

32 lines
668 B
C++
Raw Normal View History

2013-08-07 13:07:42 +00:00
#pragma once
#include <Storages/IStorage.h>
#include <Storages/AlterCommands.h>
#include <Storages/MutationCommands.h>
#include <Storages/PartitionCommands.h>
#include <Interpreters/Context.h>
#include <Interpreters/IInterpreter.h>
#include <Parsers/ASTAlterQuery.h>
2013-08-07 13:07:42 +00:00
namespace DB
{
2017-06-02 21:37:28 +00:00
/** Allows you add or remove a column in the table.
* It also allows you to manipulate the partitions of the MergeTree family tables.
2013-08-07 13:07:42 +00:00
*/
2015-06-18 02:11:05 +00:00
class InterpreterAlterQuery : public IInterpreter
2013-08-07 13:07:42 +00:00
{
public:
2017-05-23 18:01:50 +00:00
InterpreterAlterQuery(const ASTPtr & query_ptr_, const Context & context_);
2013-08-07 13:07:42 +00:00
BlockIO execute() override;
2013-08-07 13:07:42 +00:00
private:
ASTPtr query_ptr;
const Context & context;
2013-08-07 13:07:42 +00:00
};
2013-08-07 13:07:42 +00:00
}