ClickHouse/dbms/src/Storages/MutationCommands.h

36 lines
470 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IAST.h>
namespace DB
{
struct MutationCommand
{
enum Type
{
EMPTY, /// Not used.
DELETE,
};
Type type = EMPTY;
ASTPtr predicate;
static MutationCommand delete_(const ASTPtr & predicate)
{
MutationCommand res;
res.type = DELETE;
res.predicate = predicate;
return res;
}
};
struct MutationCommands
{
std::vector<MutationCommand> commands;
};
}