Begin a read-only transaction Read transactions can run concurrently with other read transactions and with a single write transaction.
(&self)
| 283 | /// Read transactions can run concurrently with other read transactions |
| 284 | /// and with a single write transaction. |
| 285 | pub fn read_txn(&self) -> PristineResult<ReadTxn> { |
| 286 | let txn = self.db.begin_read()?; |
| 287 | Ok(ReadTxn::new(txn)) |
| 288 | } |
| 289 | |
| 290 | /// Begin a read-write transaction |
| 291 | /// |
no outgoing calls