(config: &mut tokio_postgres::Config, native: &NativePostgres)
| 3471 | } |
| 3472 | |
| 3473 | fn 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 | |
| 3485 | impl Drop for NativePostgres { |
| 3486 | fn drop(&mut self) { |
no outgoing calls
no test coverage detected