You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: update_events.rb
    path of file: ./repos/rails_event_store/contrib/ruby_event_store-rom/lib/ruby_event_store/rom/changesets
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RubyEventStore
  module ROM
    module Changesets
      class UpdateEvents
    
        def commit_insert_conflict_update
          relation
            .dataset
            .insert_conflict(
              target: :event_id,
              update: UPSERT_COLUMNS.each_with_object({}) { |column, memo| memo[column] = Sequel[:excluded][column] }
            )
            .multi_insert(to_a)
        end