Thinking harder about the forget sea-orm, feed sea-query into sqlx" approach described here

reddit.com/r/rust/comments/1e8

Looking at it I'm suddenly understanding I… don't understand the return type of a sqlx "query" call. In much of the "sample" code github.com/launchbadge/sqlx it seems to be mapping return values to structs but I don't understand how it knows which one. Is this magic with generics or is the sample code omitting setups on the types. Why is "bind" required sometimes but not other times.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115266363749623134 on your instance and quote it. (Note that quoting is not supported in Mastodon.)