(row: &tokio_postgres::Row)
| 26 | } |
| 27 | |
| 28 | async fn row_to_str_hashmap(row: &tokio_postgres::Row) -> HashMap<String, String> { |
| 29 | let values = row_to_str_vec(row).await; |
| 30 | values |
| 31 | .into_iter() |
| 32 | .zip(row.columns().iter()) |
| 33 | .map(|(v, k)| (k.name().to_string(), v)) |
| 34 | .collect() |
| 35 | } |
| 36 | |
| 37 | #[tokio::main] |
| 38 | async fn main() -> Result<(), Error> { |
nothing calls this directly
no test coverage detected