Mapping from sqlx down to DataLoader style hashmap. #2558
Unanswered
hyperliskdev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to turn the query_as in the load function into the result as a hashmap. After the fetch, I get a Vec. I cant seem to find a way to handle the error and map the order hashmap using the map_ok and map_err. How can I get the PgRows into the hashmap?
Beta Was this translation helpful? Give feedback.
All reactions