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

Method read_txn

atomic-core/src/pristine/txn/pristine.rs:279–282  ·  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

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 ///

Callers 15

resolve_sequenceMethod · 0.80
get_latest_changeMethod · 0.80
test_inode_adj_iterationFunction · 0.80
test_find_block_in_inodeFunction · 0.80
test_inode_edge_iteratorFunction · 0.80
test_flag_filteringFunction · 0.80
test_read_empty_databaseFunction · 0.80
test_pristine_openFunction · 0.80

Calls

no outgoing calls