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

feat: EXPOSED-258 Enhance upsert to allow exclusion of columns set on conflict #2006

Merged
merged 3 commits into from
Feb 26, 2024

Commits on Feb 22, 2024

  1. feat: EXPOSED-258 Enhance upsert to allow exclusion of columns set on…

    … conflict
    
    Currently, if the onUpdate parameter of upsert() is provided an argument, these
    column-value pairs will be used in the update clause of the upsert statement.
    If the argument is left null, a duplicate of the column-value assignments from
    the insert block will be used instead.
    If a user wants to only update a subset of columns, or not update columns with
    default values, the only option is to provide an argument to onUpdate that
    duplicates most of the insert block.
    
    This can become verbose, so an additional parameter, onUpdateExclude, has been
    introduced, which duplicates all insert column-value pairs except those for the
    specifically excluded columns.
    This parameter could also be used in the case when the number of columns to update
    is small but the user wants to avoid duplicating the insert values.
    bog-walk committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    d1161b6 View commit details
    Browse the repository at this point in the history
  2. feat: EXPOSED-258 Enhance upsert to allow exclusion of columns set on…

    … conflict
    
    Edit documentation section to include new sample
    bog-walk committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    8b0dee3 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. feat: EXPOSED-258 Enhance upsert to allow exclusion of columns set on…

    … conflict
    
    - Change order of private batchInsert() vararg parameter
    - Change onExcludeUpdate parameter to be a List instead of Set
    bog-walk committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    0439932 View commit details
    Browse the repository at this point in the history