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

Method canonical_database_path

atomic-repository/src/repository/mod.rs:1145–1147  ·  view source on GitHub ↗

Resolve the canonical repository database path without opening redb. Sandboxes resolve to the owning repository's `.atomic/atomic.redb`, never to a sandbox-local database. A legacy repository has not been merged yet until [`ensure_database`] runs.

(path: P)

Source from the content-addressed store, hash-verified

1143 /// never to a sandbox-local database. A legacy repository has not been
1144 /// merged yet until [`ensure_database`] runs.
1145 pub fn canonical_database_path<P: AsRef<Path>>(path: P) -> Result<PathBuf, RepositoryError> {
1146 Ok(Self::canonical_dot_dir(path)?.join(DATABASE_FILE))
1147 }
1148
1149 /// Get the repository root path.
1150 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected