Replies: 1 comment
-
Have you found a solution to this? I also have the same problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to have a SQL query builder. So I want to have some struct that holds some abstract query representation with the bound values. When the user is done with the query building, it should be possible somehow to get the final SQL query as a string containing
?
or$1
and the bound values and pass them all tosql::query(query).bind(var1).bind(var2)
.I took the
Vec
as an example. It might be any other container that holds the values,HashMap
, etc. I got stuck at the very beginning.Here is my code
But the
Type
is not object safe and I'm getting this errorQuestion: how to define a container (
Vec
) that contains values that can be passed to thebind(..)
?Beta Was this translation helpful? Give feedback.
All reactions