Replies: 2 comments 2 replies
-
Could you please share an example based on your current code? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The initial idea was to own the sql statement in this struct and impl the Stream trait, so that the Stream owns its data, which did not work. So i tried to have a reference with query lifetime
But i can't get a static reference to the query, as it is a dynamic query. If i'm not mistaken this whole stuff would work, if the stream impl in the executor owns the sql string |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I implemented a pretty convenient way to handle dynamic queries. This works fine, except that i cannot get streaming to work as i need the reference to the sql string being
'static
.Basically i have a SQL string and the arguments buffer. While i can easily have a static executor i cannot have a static SQL query string for dynamic queries.
Is there a way to put the SQL string as owned data into the stream implementation?
Beta Was this translation helpful? Give feedback.
All reactions