Is there way to ergonomically get a tuple from a checked query? #3744
Unanswered
Victor-N-Suadicani
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 find myself writing something like this often:
Is there a way to avoid that
.map
call and get a tuple directly? I know I can do it with thequery_as
function, but then I don't get the query checked at compile time and I must specify the types myself.query_scalar
doesn't work as it only works for single columns. It feels like there might be a missingquery_tup!
macro which could do this? Or is there some limitation explaining why this is not implemented? I.e. I'd like this interface:Beta Was this translation helpful? Give feedback.
All reactions