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

Function open_database

atomic-core/src/pristine/txn/pristine.rs:125–131  ·  view source on GitHub ↗
(
    path: &Path,
    create: bool,
    cache_bytes: usize,
)

Source from the content-addressed store, hash-verified

123}
124
125pub(crate) fn open_database(
126 path: &Path,
127 create: bool,
128 cache_bytes: usize,
129) -> PristineResult<Database> {
130 open_database_with_backend(path, create, cache_bytes).map(|(database, _)| database)
131}
132
133fn open_database_with_backend(
134 path: &Path,

Callers 2

addMethod · 0.85

Calls 1

Tested by

no test coverage detected