Repository navigation
Sync Wrapper for Connection #735
Replies: 2 comments 12 replies
|
Hello @2ndDerivative , Thanks for opening an issue and reaching out beforehand. I fear though Connections are not Let us not dive into the solution space so quickly. Rather I would try to understand the problem you face better.
Taking this at face value this is already be possible. So I assume you want to take ownership of the connection handle as well? Why? Anyhow, there is also a way to take ownership of the handle using I would like to understand these two requirements better in the context of your use-case. I am sure we can come up with a solution. Best, Markus |
Hello @2ndDerivative , ultimately your original request is now also possible. It is now possible not, only for I still feel that actors are the best solution to your problem, still I wanted to inform you about the new capabilities. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I want to use multiple prepared statements in a way that allows me to reuse a single connection, so I came up with this.
I would want to keep adding fields to the PreparedStatements for every prepared query, and because the customer_data method takes a
&mut self, I figured it should be safe?I wanted to show this to get some feedback, of course this could use a proper safe interface (like making the connection functions take &mut?).
if you guys have better ideas please tell!
Cheers
All reactions