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

Method begin_read

atomic-core/src/pristine/txn/pristine.rs:242–247  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

240
241impl PristineDatabase {
242 fn begin_read(&self) -> Result<redb::ReadTransaction, redb::TransactionError> {
243 match self {
244 Self::Writable(db, _) => db.begin_read(),
245 Self::ReadOnly(db) => db.begin_read(),
246 }
247 }
248
249 /// The writable database handle, or an error for read-only pristines.
250 fn writable_db(&self) -> PristineResult<&Database> {

Calls

no outgoing calls