| 1 | //===----------------------------------------------------------------------===// | 
|---|---|
| 2 | // DuckDB | 
| 3 | // | 
| 4 | // duckdb/main/relation/table_function_relation.hpp | 
| 5 | // | 
| 6 | // | 
| 7 | //===----------------------------------------------------------------------===// | 
| 8 | |
| 9 | #pragma once | 
| 10 | |
| 11 | #include "duckdb/main/relation.hpp" | 
| 12 | |
| 13 | namespace duckdb { | 
| 14 | |
| 15 | class TableFunctionRelation : public Relation { | 
| 16 | public: | 
| 17 | TableFunctionRelation(ClientContext &context, string name, vector<Value> parameters); | 
| 18 | |
| 19 | string name; | 
| 20 | vector<Value> parameters; | 
| 21 | vector<ColumnDefinition> columns; | 
| 22 | |
| 23 | public: | 
| 24 | unique_ptr<QueryNode> GetQueryNode() override; | 
| 25 | unique_ptr<TableRef> GetTableRef() override; | 
| 26 | |
| 27 | const vector<ColumnDefinition> &Columns() override; | 
| 28 | string ToString(idx_t depth) override; | 
| 29 | string GetAlias() override; | 
| 30 | }; | 
| 31 | |
| 32 | } // namespace duckdb | 
| 33 | 
