The pristine database handle This is the main entry point for all database operations. It wraps a redb database and provides methods for creating transactions. # Example ```ignore let pristine = Pristine::open("path/to/pristine")?; // Read-only access let read_txn = pristine.read_txn()?; let view = read_txn.get_view("main")?; // Read-write access let mut write_txn = pristine.write_txn()?; let
| 90 | /// write_txn.commit()?; |
| 91 | /// ``` |
| 92 | pub struct Pristine { |
| 93 | db: PristineDatabase, |
| 94 | /// Counter for allocating node IDs |
| 95 | pub(crate) next_node_id: AtomicU64, |
| 96 | /// Counter for allocating view IDs |
| 97 | pub(crate) next_view_id: AtomicU64, |
| 98 | /// Counter for allocating inodes |
| 99 | pub(crate) next_inode: AtomicU64, |
| 100 | } |
| 101 | |
| 102 | enum PristineDatabase { |
| 103 | Writable(Database), |
no outgoing calls