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

Method open_readonly_for_repair

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

Open an existing database for read-only repair inspection without initializing tables or requiring a completed PATH_CLAIMS schema. A legacy redb format or interrupted transaction can require a writable upgrade or recovery before the database is reopened read-only.

(path: P)

Source from the content-addressed store, hash-verified

524 /// A legacy redb format or interrupted transaction can require a writable
525 /// upgrade or recovery before the database is reopened read-only.
526 pub fn open_readonly_for_repair<P: AsRef<Path>>(path: P) -> PristineResult<Self> {
527 Self::open_readonly_with_schema_check(path, false, true)
528 }
529
530 fn open_readonly_with_schema_check<P: AsRef<Path>>(
531 path: P,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected