Replies: 1 comment 4 replies
-
Do you mean something like update_or_create? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when we say Model.query.create() if we had any conflicts we can give like on conflicts and there we can handle it by updateing that would be an alternative to get_or_create
a reference to postgresql on conflicts
https://www.postgresql.org/docs/current/sql-insert.html
Beta Was this translation helpful? Give feedback.
All reactions