/
bound_table_function.hpp
39 lines (34 loc) · 1.22 KB
/
bound_table_function.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/planner/tableref/bound_table_function.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/common/types/value.hpp"
#include "duckdb/planner/expression.hpp"
#include "duckdb/planner/bound_tableref.hpp"
#include "duckdb/function/function.hpp"
namespace duckdb {
class TableFunctionCatalogEntry;
//! Represents a reference to a table-producing function call
class BoundTableFunction : public BoundTableRef {
public:
BoundTableFunction(TableFunctionCatalogEntry *function, idx_t bind_index)
: BoundTableRef(TableReferenceType::TABLE_FUNCTION), function(function), bind_index(bind_index) {
}
//! The function that is called
TableFunctionCatalogEntry *function;
//! The bind data of the function
unique_ptr<FunctionData> bind_data;
//! The set of parameters to use as input to the table-producing function
vector<Value> parameters;
//! The set of returned sql types
vector<SQLType> return_types;
//! The set of returned column names
vector<string> names;
//! The index in the bind context
idx_t bind_index;
};
} // namespace duckdb