1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/main/relation/create_view_relation.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/main/relation.hpp"
12
13namespace duckdb {
14
15class CreateViewRelation : public Relation {
16public:
17 CreateViewRelation(shared_ptr<Relation> child, string view_name, bool replace, bool temporary);
18 CreateViewRelation(shared_ptr<Relation> child, string schema_name, string view_name, bool replace, bool temporary);
19
20 shared_ptr<Relation> child;
21 string schema_name;
22 string view_name;
23 bool replace;
24 bool temporary;
25 vector<ColumnDefinition> columns;
26
27public:
28 BoundStatement Bind(Binder &binder) override;
29 const vector<ColumnDefinition> &Columns() override;
30 string ToString(idx_t depth) override;
31 bool IsReadOnly() override {
32 return false;
33 }
34};
35
36} // namespace duckdb
37