1#include "duckdb/parser/statement/transaction_statement.hpp"
2
3namespace duckdb {
4
5TransactionStatement::TransactionStatement(TransactionType type)
6 : SQLStatement(StatementType::TRANSACTION_STATEMENT), info(make_uniq<TransactionInfo>(args&: type)) {
7}
8
9TransactionStatement::TransactionStatement(const TransactionStatement &other)
10 : SQLStatement(other), info(make_uniq<TransactionInfo>(args&: other.info->type)) {
11}
12
13unique_ptr<SQLStatement> TransactionStatement::Copy() const {
14 return unique_ptr<TransactionStatement>(new TransactionStatement(*this));
15}
16
17} // namespace duckdb
18