Apologies if this has already been asked and/or answered (I did extensively 
search the documentation, github issues and this group).

Is it possible to use `insert_conflict` with `import` using Postgres? I'm 
wanting to efficiently bulk add items, but I do have unique constraints in 
place that I need to account for and handle accordingly. Currently, I'm 
running with the following idea (but have yet to test):

DB[:table]
>   .insert_conflict(
>     constraint: :table_a_uniq_idx,
>     update: {
>       a: :excluded__a
>     }
>   )
>   .import([:a, :b], [['a', 'b'], ['a', 'c']])
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to