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