mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
25 lines
459 B
C++
25 lines
459 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Interpreters/IInterpreter.h>
|
||
|
#include <Parsers/IAST_fwd.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
/** Allows you do lightweight deletion on a MergeTree family table.
|
||
|
*/
|
||
|
class InterpreterDeleteQuery : public IInterpreter, WithContext
|
||
|
{
|
||
|
public:
|
||
|
InterpreterDeleteQuery(const ASTPtr & query_ptr_, ContextPtr context_);
|
||
|
|
||
|
BlockIO execute() override;
|
||
|
|
||
|
bool supportsTransactions() const override { return true; }
|
||
|
|
||
|
private:
|
||
|
ASTPtr query_ptr;
|
||
|
};
|
||
|
|
||
|
}
|