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