Skip to content

Add on_conflict option for upsert #194

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

Closed
ConnorVO opened this issue Dec 12, 2022 · 2 comments
Closed

Add on_conflict option for upsert #194

ConnorVO opened this issue Dec 12, 2022 · 2 comments

Comments

@ConnorVO
Copy link

Is your feature request related to a problem? Please describe.
I need to be able to define the column to check for conflict when upserting

Describe the solution you'd like
Add an on_conflict option like the js API

Describe alternatives you've considered
Currently I have to write my own upsert functionality to check if a row containing a value in a specific column exists and then updating if it does or inserting if not

@J0
Copy link
Contributor

J0 commented Jan 23, 2023

Hey @ConnorVO,

Thanks for the query - there's an open PR on postgrest-py but it's been a while. I'll transfer this issue to the postgrest-py repo so that you can be best notified when it gets merged.

Lmk if there are further queries

Jo

@J0 J0 transferred this issue from supabase/supabase-py Jan 23, 2023
@J0
Copy link
Contributor

J0 commented Jan 23, 2023

Fixed by #142

@J0 J0 closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants