Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joeljuca opened this issue Nov 2, 2023 · 1 comment
Open

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

joeljuca opened this issue Nov 2, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@joeljuca
Copy link
Owner

joeljuca commented Nov 2, 2023

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 joeljuca added enhancement New feature or request good first issue Good for newcomers labels Nov 2, 2023
@joeljuca
Copy link
Owner Author

joeljuca commented Nov 2, 2023

I'm tagging it as good first issue so new contributors can pick it to implement and PR.

If you're reading this and would like to contribute to the project, feel free to pick it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant