1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/parser/statement/logical_plan_statement.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/parser/sql_statement.hpp"
12#include "duckdb/planner/logical_operator.hpp"
13
14namespace duckdb {
15
16class LogicalPlanStatement : public SQLStatement {
17public:
18 static constexpr const StatementType TYPE = StatementType::LOGICAL_PLAN_STATEMENT;
19
20public:
21 explicit LogicalPlanStatement(unique_ptr<LogicalOperator> plan_p)
22 : SQLStatement(StatementType::LOGICAL_PLAN_STATEMENT), plan(std::move(plan_p)) {};
23
24 unique_ptr<LogicalOperator> plan;
25
26public:
27 unique_ptr<SQLStatement> Copy() const override {
28 throw NotImplementedException("PLAN_STATEMENT");
29 }
30};
31
32} // namespace duckdb
33