Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Question] Owned query parameters #843

Closed
@elpiel

Description

@elpiel

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp