1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/parser/parsed_data/create_view_info.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/parser/parsed_data/create_info.hpp" |
12 | #include "duckdb/parser/query_node.hpp" |
13 | |
14 | namespace duckdb { |
15 | |
16 | struct CreateViewInfo : public CreateInfo { |
17 | CreateViewInfo() : CreateInfo(CatalogType::VIEW) { |
18 | } |
19 | CreateViewInfo(string schema, string view_name) : CreateInfo(CatalogType::VIEW, schema), view_name(view_name) { |
20 | } |
21 | |
22 | //! Table name to insert to |
23 | string view_name; |
24 | //! Aliases of the view |
25 | vector<string> aliases; |
26 | //! Return types |
27 | vector<SQLType> types; |
28 | //! The QueryNode of the view |
29 | unique_ptr<QueryNode> query; |
30 | }; |
31 | |
32 | } // namespace duckdb |
33 |