1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/transaction/transaction_data.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/common/common.hpp" |
12 | #include "duckdb/common/optional_ptr.hpp" |
13 | |
14 | namespace duckdb { |
15 | class DuckTransaction; |
16 | class Transaction; |
17 | |
18 | struct TransactionData { |
19 | TransactionData(DuckTransaction &transaction_p); |
20 | TransactionData(transaction_t transaction_id_p, transaction_t start_time_p); |
21 | |
22 | optional_ptr<DuckTransaction> transaction; |
23 | transaction_t transaction_id; |
24 | transaction_t start_time; |
25 | }; |
26 | |
27 | } // namespace duckdb |
28 |