1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! Transaction management and access.
//!
//! # Core Types (re-exported at crate root)
//!
//! - [`TxSync`] - Thread-safe synchronized transaction
//! - [`TxUnsync`] - Single-threaded unsynchronized transaction
//! - [`Cursor`] - Database cursor for navigating entries
//! - [`Database`] - Handle to an opened database
//! - [`RO`], [`RW`] - Transaction kind markers
//! - [`CommitLatency`] - Commit timing information
//!
//! # Type Aliases
//!
//! Convenience aliases for common transaction/cursor configurations:
//! - [`RoTxSync`], [`RwTxSync`] - Synchronized transactions
//! - [`RoTxUnsync`], [`RwTxUnsync`] - Unsynchronized transactions
//! - [`RoCursorSync`], [`RwCursorSync`] - Cursors for synchronized transactions
//! - [`RoCursorUnsync`], [`RwCursorUnsync`] - Cursors for unsynchronized transactions
//!
//! # Advanced: Writing Generic Code
//!
//! For users writing generic code over cursors or transactions, the
//! [`TxPtrAccess`] trait is available. This trait abstracts over the different
//! ways transaction pointers are stored and accessed.
//!
pub use PtrSync;
pub use ;
pub use ;
pub use ;
pub use Database;
pub use ;
pub use ;
/// Raw operations on transactions.
// this is used in some features
pub use ;
pub use TxUnsync;
/// A synchronized read-only transaction.
pub type RoTxSync = ;
/// A synchronized read-write transaction.
pub type RwTxSync = ;
/// An unsynchronized read-only transaction.
pub type RoTxUnsync = ;
/// An unsynchronized read-write transaction.
pub type RwTxUnsync = ;
/// The default maximum duration of a read transaction.
pub const DEFAULT_MAX_READ_TRANSACTION_DURATION: Duration =
from_secs;