1#include "duckdb/execution/operator/schema/physical_create_view.hpp"
2#include "duckdb/catalog/catalog.hpp"
3
4namespace duckdb {
5
6//===--------------------------------------------------------------------===//
7// Source
8//===--------------------------------------------------------------------===//
9SourceResultType PhysicalCreateView::GetData(ExecutionContext &context, DataChunk &chunk,
10 OperatorSourceInput &input) const {
11 auto &catalog = Catalog::GetCatalog(context&: context.client, catalog_name: info->catalog);
12 catalog.CreateView(context&: context.client, info&: *info);
13
14 return SourceResultType::FINISHED;
15}
16
17} // namespace duckdb
18