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

Method open_existing

atomic-repository/src/redb_change_store/mod.rs:286–288  ·  view source on GitHub ↗

Open the store in an existing database file without creating it. Repository callers pass [`crate::ensure_database`]'s result here.

(path: P)

Source from the content-addressed store, hash-verified

284 ///
285 /// Repository callers pass [`crate::ensure_database`]'s result here.
286 pub fn open_existing<P: AsRef<Path>>(path: P) -> RedbStoreResult<Self> {
287 Self::from_database(Arc::new(Builder::new().open(path)?))
288 }
289
290 /// Open the store in an existing database file, waiting at most
291 /// `timeout` for an incompatible process handle to close. Other errors

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected