Skip to content

How to bind an array of values? #1099

@adamwulf

Description

@adamwulf

I'd like to prepare an UPDATE query like so:

        let update = try conn.prepare("UPDATE records SET mumble = ? WHERE anyBlob IN (?)")
        update.run('grumble', arrayOfBlobs)

I only seem to be able to bind a single object, but don't see how i can filter the prepared query by an array of values?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions