1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/main/relation/view_relation.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/main/relation.hpp"
12
13namespace duckdb {
14
15class ViewRelation : public Relation {
16public:
17 ViewRelation(const std::shared_ptr<ClientContext> &context, string schema_name, string view_name);
18
19 string schema_name;
20 string view_name;
21 vector<ColumnDefinition> columns;
22
23public:
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