MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_database_path

Method get_database_path

crates/opencode-storage/src/database.rs:113–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 fn get_database_path() -> Result<PathBuf, DatabaseError> {
114 let data_dir = dirs::data_local_dir()
115 .unwrap_or_else(|| PathBuf::from("."))
116 .join("opencode");
117
118 Ok(data_dir.join("opencode.db"))
119 }
120}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected