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