1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/main/relation/delete_relation.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/main/relation.hpp"
12#include "duckdb/parser/parsed_expression.hpp"
13
14namespace duckdb {
15
16class DeleteRelation : public Relation {
17public:
18 DeleteRelation(ClientContextWrapper &context, unique_ptr<ParsedExpression> condition, string schema_name,
19 string table_name);
20
21 vector<ColumnDefinition> columns;
22 unique_ptr<ParsedExpression> condition;
23 string schema_name;
24 string table_name;
25
26public:
27 BoundStatement Bind(Binder &binder) override;
28 const vector<ColumnDefinition> &Columns() override;
29 string ToString(idx_t depth) override;
30 bool IsReadOnly() override {
31 return false;
32 }
33};
34
35} // namespace duckdb
36