INNER CODE UNIT · Rust
db_dir
upvpn/upvpn-app · upvpn-config/src/lib.rs:103
pub fn db_dir(&self) -> PathBuf {
self.config_dir.join("db")
}
pub fn db_url(&self) -> String {
format!("sqlite://{}/upvpn.db?mode=rwc", self.db_dir().display())
}
pub fn grpc_api_host_port(&self) -> &str {
&self.grpc_api_host_port
}
pub fn rest_api_host_port(&self) -> &str {
&self.rest_api_host_port
}
pub fn google_client_id(&self) -> Option<&str> {
self.google_client_id.as_deref()