| 1 | //===----------------------------------------------------------------------===// |
|---|---|
| 2 | // DuckDB |
| 3 | // |
| 4 | // duckdb/planner/tableref/bound_basetableref.hpp |
| 5 | // |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "duckdb/planner/bound_tableref.hpp" |
| 12 | #include "duckdb/planner/logical_operator.hpp" |
| 13 | |
| 14 | namespace duckdb { |
| 15 | class TableCatalogEntry; |
| 16 | |
| 17 | //! Represents a TableReference to a base table in the schema |
| 18 | class BoundBaseTableRef : public BoundTableRef { |
| 19 | public: |
| 20 | static constexpr const TableReferenceType TYPE = TableReferenceType::BASE_TABLE; |
| 21 | |
| 22 | public: |
| 23 | BoundBaseTableRef(TableCatalogEntry &table, unique_ptr<LogicalOperator> get) |
| 24 | : BoundTableRef(TableReferenceType::BASE_TABLE), table(table), get(std::move(get)) { |
| 25 | } |
| 26 | |
| 27 | TableCatalogEntry &table; |
| 28 | unique_ptr<LogicalOperator> get; |
| 29 | }; |
| 30 | } // namespace duckdb |
| 31 |