(&self)
| 75 | /// Return the Unix-domain socket path, if this server is using UDS. |
| 76 | #[cfg(unix)] |
| 77 | pub fn socket_path(&self) -> Option<&Path> { |
| 78 | match &self.endpoint { |
| 79 | ServerEndpoint::Tcp(_) => None, |
| 80 | ServerEndpoint::Unix(path) => Some(path), |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /// Return a PostgreSQL connection URI for the local server. |
| 85 | pub fn connection_uri(&self) -> String { |
no outgoing calls
no test coverage detected