Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Specify a column on insertOrUpdate #148

@vansimonsen

Description

@vansimonsen

If you want to write into a db using insertOrUpdate strategy, you cannot specify column to be used at on conflict and is assuming that is the primary key.

That isn't useful on tables with unique columns but no primary keys (for example with postgres with timescaledb extension, your primary key is an index and not and specific column)

Could I specify a column to be used to looking for a conflict or set an ON CONSTRAINT clause?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions