Begin a read-only transaction Read transactions can run concurrently with other read transactions and with a single write transaction.
(&self)
| 700 | /// Read transactions can run concurrently with other read transactions |
| 701 | /// and with a single write transaction. |
| 702 | pub fn read_txn(&self) -> PristineResult<ReadTxn> { |
| 703 | let txn = self.db.begin_read()?; |
| 704 | Ok(ReadTxn::new(txn)) |
| 705 | } |
| 706 | |
| 707 | /// Begin a read-write transaction |
| 708 | /// |