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

Any way to specify ON CONFLICT DO NOTHING? #379

Open
vincentjames501 opened this issue May 25, 2017 · 2 comments
Open

Any way to specify ON CONFLICT DO NOTHING? #379

vincentjames501 opened this issue May 25, 2017 · 2 comments
Labels
inactive-issue? This issue should be closed within 2 weeks of the most recent comment due to inactivity

Comments

@vincentjames501
Copy link

I'm trying to do inserts with postgres' UPSERT capabilities and it would be nice to be able to add some modifiers after the VALUES in the insert. I don't see a way to easily do this, any advice?

(korma/sql-only
  (korma/insert :table
                (korma/values [{:foo "bar"}])
                (korma/modifier "ON CONFLICT DO NOTHING")))
=> "INSERT INTO \"table\" (\"foo\") VALUES (?)"
@dukex
Copy link

dukex commented Jun 4, 2017

Hey @vincentjames501 maybe the issue #112 can help you

@venantius
Copy link
Contributor

I'm going through old issues and trying to clean them up. Has this issue persisted?

If there hasn't been a response to this issue in 2 weeks, I'll close the ticket.

@venantius venantius added the inactive-issue? This issue should be closed within 2 weeks of the most recent comment due to inactivity label Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive-issue? This issue should be closed within 2 weeks of the most recent comment due to inactivity
Projects
None yet
Development

No branches or pull requests

3 participants