MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / open

Method open

src/global_db.rs:1076–1079  ·  view source on GitHub ↗

Opens (or creates) the global database. Returns `None` if the home directory cannot be determined or the DB fails to open.

()

Source from the content-addressed store, hash-verified

1074 /// Opens (or creates) the global database. Returns `None` if the home
1075 /// directory cannot be determined or the DB fails to open.
1076 pub async fn open() -> Option<Self> {
1077 let db_path = global_db_path()?;
1078 Self::open_at(&db_path).await
1079 }
1080
1081 /// Raw connection for crate-internal read layers (the dashboard HTTP
1082 /// server queries the LCM tables directly).

Callers

nothing calls this directly

Calls 1

global_db_pathFunction · 0.85

Tested by

no test coverage detected