Class: RubyEventStore::ROM::Changesets::UpdateEvents

Inherits:
ROM::Changeset::Update
  • Object
show all
Defined in:
lib/ruby_event_store/rom/changesets/update_events.rb

Constant Summary collapse

UPSERT_COLUMNS =
%i[event_type data metadata valid_at].freeze

Instance Method Summary collapse

Instance Method Details

#commitObject



19
20
21
# File 'lib/ruby_event_store/rom/changesets/update_events.rb', line 19

def commit
  supports_on_duplicate_key_update? ? commit_on_duplicate_key_update : commit_insert_conflict_update
end