Skip to content

How do I make a (variable length) set of named parameters at runtime? #907

Description

@hutchisr

I need to generate a query based on user input and I can't figure out how to build an object that will be accepted as named parameters. For unnamed parameters I was able to pass a &Vec<Box<dyn ToSql>>, but for the functions that take named parameters, &Vec<(&str, Box<dyn ToSql>)> gives a type mismatch error. I'm not sure where to go from here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions