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

Method open_readonly

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

Open an existing pristine database in read-only mode This method opens the database without acquiring a write lock, allowing concurrent read access from multiple processes. It's suitable for read-only operations like `status`, `diff`, `log`, and `change`. # Errors Returns an error if: - The database file doesn't exist - The database is corrupted - Read access cannot be obtained # Example ```i

(path: P)

Source from the content-addressed store, hash-verified

482 /// // Read operations...
483 /// ```
484 pub fn open_readonly<P: AsRef<Path>>(path: P) -> PristineResult<Self> {
485 Self::open_readonly_with_schema_check(path, true, true)
486 }
487
488 /// Open for inspection without performing database upgrade or recovery.
489 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected