Open joeljuca opened 8 months ago
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).
c:insert/2
UPSERT
INSERT
UPDATE
See: https://hexdocs.pm/ecto/Ecto.Repo.html#c:insert/2-upserts
I'm tagging it as good first issue so new contributors can pick it to implement and PR.
good first issue
If you're reading this and would like to contribute to the project, feel free to pick it up.
Ecto.Repo's
c:insert/2
can be used to performUPSERT
operations (anINSERT
opts that becomesUPDATE
if a given entry is already present in the repository).See: https://hexdocs.pm/ecto/Ecto.Repo.html#c:insert/2-upserts