- Notifications
You must be signed in to change notification settings - Fork516
Closed
Description
It's not that often that I get into this problem, however, if you're making a query you always have to pass&dyn ToSql + Sync
.
This is not sufficient in some cases, e.g. if you're pushing your parameters into a vec in one function scope to build the parameters list and in another (the caller) you try to use the parameters and pass them toclient.query
Is there a way we can make query or similar function work withBox<dyn ToSql>
. I've tried implementing it fortokio-postgres
but I quickly bumped into some issues with the implementation.
It's also not possible to use something likeVec<Box<dyn ToSql + Sync + Send>
if you want to send the value to thefn query
since query is expecting aToSql + Sync
Metadata
Metadata
Assignees
Labels
No labels