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
| 56 | /// write_txn.commit()?; |
| 57 | /// ``` |
| 58 | pub struct Pristine { |
| 59 | db: Database, |
| 60 | /// Counter for allocating node IDs |
| 61 | pub(crate) next_node_id: AtomicU64, |
| 62 | /// Counter for allocating view IDs |
| 63 | pub(crate) next_view_id: AtomicU64, |
| 64 | /// Counter for allocating inodes |
| 65 | pub(crate) next_inode: AtomicU64, |
| 66 | } |
| 67 | |
| 68 | impl Pristine { |
| 69 | /// Open or create a pristine database at the given path |
no outgoing calls