-
Notifications
You must be signed in to change notification settings - Fork 3
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
Is there a way to use insert_
with ON CONFLICT
#63
Comments
Unfortunately there's no easy way to add this variant. Customization of statements like purescript-selda/src/Selda/Query/ShowStatement.purs Lines 77 to 84 in ae8bf03
purescript-selda/src/Selda/Query/Class.purs Lines 62 to 66 in e2c56b0
purescript-selda/src/Selda/PG/Class.purs Lines 150 to 156 in e2c56b0
Let me know if you have any questions about the implementation |
Thanks for the quick response. Please tell me this is not what you meant: |
Yes, it looks like it. Does it work for you? If you care only about postgresql then you can drop the type class I don't know what is the best way to integrate this change into selda - probably easiest would be to expose these basic building blocks for query-string generation in |
I would like to end my query with
ON CONFLICT DO NOTHING
. Could there be a specialinsertOnConflict_
function or something?The text was updated successfully, but these errors were encountered: