Skip to content

Allow batch UPDATE statements with parameterised WHERE-clauses #99

@soenkehahn

Description

@soenkehahn

I'd like to use executeMany to perform UPDATE queries in batch. The queries have roughly the form:

UPDATE table SET someField = ? WHERE someOtherField = ?;

As I understand this is not possible due to the restrictions executeMany poses on query templates.

  • Is there a way to work around this limitation?
  • I guess this limitation is not imposed by postgresql but rather introduced on the Haskell side. Is that true?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions