1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/parser/statement/transaction_statement.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/parser/sql_statement.hpp" |
12 | #include "duckdb/parser/parsed_data/transaction_info.hpp" |
13 | |
14 | namespace duckdb { |
15 | |
16 | class TransactionStatement : public SQLStatement { |
17 | public: |
18 | static constexpr const StatementType TYPE = StatementType::TRANSACTION_STATEMENT; |
19 | |
20 | public: |
21 | explicit TransactionStatement(TransactionType type); |
22 | |
23 | unique_ptr<TransactionInfo> info; |
24 | |
25 | protected: |
26 | TransactionStatement(const TransactionStatement &other); |
27 | |
28 | public: |
29 | unique_ptr<SQLStatement> Copy() const override; |
30 | }; |
31 | } // namespace duckdb |
32 |