MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / default_database_url

Function default_database_url

crates/openshell-server/src/defaults.rs:67–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67pub fn default_database_url() -> Result<String> {
68 let path = openshell_core::paths::openshell_state_dir()?
69 .join("gateway")
70 .join("openshell.db");
71 openshell_core::paths::ensure_parent_dir_restricted(&path)?;
72 Ok(format!("sqlite:{}", path.display()))
73}
74
75fn default_local_tls_dir() -> Result<PathBuf> {
76 if let Some(path) = std::env::var_os("OPENSHELL_LOCAL_TLS_DIR") {

Callers 1

apply_runtime_defaultsFunction · 0.85

Calls 2

openshell_state_dirFunction · 0.85

Tested by

no test coverage detected