| 1 | //===----------------------------------------------------------------------===// | 
|---|---|
| 2 | // DuckDB | 
| 3 | // | 
| 4 | // duckdb/main/relation/create_table_relation.hpp | 
| 5 | // | 
| 6 | // | 
| 7 | //===----------------------------------------------------------------------===// | 
| 8 | |
| 9 | #pragma once | 
| 10 | |
| 11 | #include "duckdb/main/relation.hpp" | 
| 12 | |
| 13 | namespace duckdb { | 
| 14 | |
| 15 | class CreateTableRelation : public Relation { | 
| 16 | public: | 
| 17 | CreateTableRelation(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 | unique_ptr<QueryNode> GetQueryNode() override; | 
| 26 | BoundStatement Bind(Binder &binder) override; | 
| 27 | const vector<ColumnDefinition> &Columns() override; | 
| 28 | string ToString(idx_t depth) override; | 
| 29 | bool IsReadOnly() override { | 
| 30 | return false; | 
| 31 | } | 
| 32 | }; | 
| 33 | |
| 34 | } // namespace duckdb | 
| 35 | 
