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

Function configure_native_postgres_client

xtask/src/main.rs:3473–3483  ·  view source on GitHub ↗
(config: &mut tokio_postgres::Config, native: &NativePostgres)

Source from the content-addressed store, hash-verified

3471}
3472
3473fn configure_native_postgres_client(config: &mut tokio_postgres::Config, native: &NativePostgres) {
3474 config.user("postgres").dbname("postgres").port(native.port);
3475 #[cfg(unix)]
3476 {
3477 config.host_path(&native.socket_dir);
3478 }
3479 #[cfg(not(unix))]
3480 {
3481 config.host("127.0.0.1");
3482 }
3483}
3484
3485impl Drop for NativePostgres {
3486 fn drop(&mut self) {

Callers 3

perf_native_postgresFunction · 0.85
probe_readyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected