Skip to content
  • Jorge Manrubia's avatar
    d133cc40
    Add support for passing the list of columns to update in upsert_all · d133cc40
    Jorge Manrubia authored
    #41933 added a new `on_duplicate:` option to `upsert_all`, to allow
    providing custom SQL update code. This change makes `on_duplicate` admit
    an array of columns too, so that `upsert_all` only updates those
    columns when a conflict happens.
    
    This allows limiting the list of updated column in a database-agnostic
    way.
    d133cc40
    Add support for passing the list of columns to update in upsert_all
    Jorge Manrubia authored
    #41933 added a new `on_duplicate:` option to `upsert_all`, to allow
    providing custom SQL update code. This change makes `on_duplicate` admit
    an array of columns too, so that `upsert_all` only updates those
    columns when a conflict happens.
    
    This allows limiting the list of updated column in a database-agnostic
    way.
Loading