stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.55k forks source link

How to bind an array of values? #1099

Open adamwulf opened 2 years ago

adamwulf commented 2 years ago

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?