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

Function global_db_path

src/global_db.rs:321–326  ·  view source on GitHub ↗

Returns the path to the global database: `global.db` inside the user-level data dir (`~/.tracedecay/` by default).

()

Source from the content-addressed store, hash-verified

319/// Returns the path to the global database: `global.db` inside the user-level
320/// data dir (`~/.tracedecay/` by default).
321pub fn global_db_path() -> Option<PathBuf> {
322 if let Some(path) = global_db_path_override() {
323 return Some(path);
324 }
325 crate::config::user_data_dir().map(|dir| dir.join("global.db"))
326}
327
328/// True when `TRACEDECAY_GLOBAL_DB` pins the global DB to an explicit path.
329/// Consumers treat the override as an operator decision that wins over project

Callers 10

print_flash_warningFunction · 0.85
check_global_dbFunction · 0.85
currentMethod · 0.85
run_foreground_unixFunction · 0.85
openMethod · 0.85
resolve_lcm_storeFunction · 0.85
build_state_innerFunction · 0.85
locked_global_db_pathFunction · 0.85

Calls 2

global_db_path_overrideFunction · 0.85
user_data_dirFunction · 0.85

Tested by 1

locked_global_db_pathFunction · 0.68