swiss_schema icon indicating copy to clipboard operation
swiss_schema copied to clipboard

Implement `c:upsert/2` as a pre-configured version of `c:insert/2`

Open joeljuca opened this issue 1 year ago • 1 comments

Ecto.Repo's c:insert/2 can be used to perform UPSERT operations (an INSERT opts that becomes UPDATE if a given entry is already present in the repository).

See: https://hexdocs.pm/ecto/Ecto.Repo.html#c:insert/2-upserts

joeljuca avatar Nov 02 '23 01:11 joeljuca