MCPcopy Index your code
hub / github.com/bedroombuilds/python2rust / row_to_str_hashmap

Function row_to_str_hashmap

21_postgresql/rust/pg_async/src/main.rs:28–35  ·  view source on GitHub ↗
(row: &tokio_postgres::Row)

Source from the content-addressed store, hash-verified

26}
27
28async 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]
38async fn main() -> Result<(), Error> {

Callers

nothing calls this directly

Calls 2

row_to_str_vecFunction · 0.70
nameMethod · 0.45

Tested by

no test coverage detected