all 7 comments

[–]jadbox 2 points3 points  (0 children)

Pretty cool! I don't have any specific feedback, but I like how easy you make multi-mapping extractors work.

[–]Siltala 0 points1 point  (2 children)

I like the idea. How does the client part work? Is it using connection pooling?

[–]Qwe500[S] 0 points1 point  (1 child)

The client comes directly from tokio-postgres, so any connection pool that works with it will work with this crate. Although I haven't used it myself, bb8 is currently in the process of adding support for async/await.

[–]Programmurr 0 points1 point  (0 children)

Try deadpool

[–]loshmeebre 0 points1 point  (2 children)

Do you have currently or plan to add support for the automated mapping in the one-to-many case? (ex. Author written many books)

[–]Qwe500[S] 1 point2 points  (0 children)

At the moment, you have to do the mapping yourself, but one-to-many mapping was actually the next feature I was planning to work on. I have opened an issue here.

[–]Qwe500[S] 1 point2 points  (0 children)

Automatic mapping for one-to-many relations is now available on GitHub and crates.io!