MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / socket_path

Method socket_path

src/pglite/server.rs:77–82  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 2

pg_connect_optionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected