1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/main/relation/write_csv_relation.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/main/relation.hpp" |
12 | |
13 | namespace duckdb { |
14 | |
15 | class WriteCSVRelation : public Relation { |
16 | public: |
17 | WriteCSVRelation(shared_ptr<Relation> child, string csv_file, case_insensitive_map_t<vector<Value>> options); |
18 | |
19 | shared_ptr<Relation> child; |
20 | string csv_file; |
21 | vector<ColumnDefinition> columns; |
22 | case_insensitive_map_t<vector<Value>> options; |
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 |