1#include "duckdb/parser/statement/explain_statement.hpp"
2
3namespace duckdb {
4
5ExplainStatement::ExplainStatement(unique_ptr<SQLStatement> stmt, ExplainType explain_type)
6 : SQLStatement(StatementType::EXPLAIN_STATEMENT), stmt(std::move(stmt)), explain_type(explain_type) {
7}
8
9ExplainStatement::ExplainStatement(const ExplainStatement &other)
10 : SQLStatement(other), stmt(other.stmt->Copy()), explain_type(other.explain_type) {
11}
12
13unique_ptr<SQLStatement> ExplainStatement::Copy() const {
14 return unique_ptr<ExplainStatement>(new ExplainStatement(*this));
15}
16
17} // namespace duckdb
18