MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / read_txn

Method read_txn

atomic-core/src/pristine/txn/pristine.rs:341–344  ·  view source on GitHub ↗

Begin a read-only transaction Read transactions can run concurrently with other read transactions and with a single write transaction.

(&self)

Source from the content-addressed store, hash-verified

339 /// Read transactions can run concurrently with other read transactions
340 /// and with a single write transaction.
341 pub fn read_txn(&self) -> PristineResult<ReadTxn> {
342 let txn = self.db.begin_read()?;
343 Ok(ReadTxn::new(txn))
344 }
345
346 /// Begin a read-write transaction
347 ///

Calls 1

begin_readMethod · 0.80