You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2019. It is now read-only.
Postgres 9.5 introduced the ON CONFLICT clause which enables upsert behavior.
Would you be open to a PR to add support for this to Massive as an option on insert? Simplest solution would be to add a second options parameter. e.g.
Postgres 9.5 introduced the
ON CONFLICTclause which enables upsert behavior.Would you be open to a PR to add support for this to Massive as an option on
insert? Simplest solution would be to add a secondoptionsparameter. e.g.It should be possible to generate the rest of the
do updateclause automatically.Alternatively the options could be flags like
{ignoreConflict: true}and{upsert: true}respectively.As mentioned in #278 (comment) this this could also be used for
save.