Class: ActiveRecord::Materialized::WriteOutbox::Triggers::Op

Inherits:
Data
  • Object
show all
Defined in:
lib/activerecord/materialized/write_outbox.rb

Overview

One operation's contribution to a trigger: the identifier suffix, the DML event, the ActiveRecord::Materialized::WriteChange operation name, and the already-built +key_before+/+key_after+ SQL expressions (a JSON constructor or the literal "NULL"). Bundled as a value object so the per-op single-trigger dialects (SQLite/MySQL) share one construction path.

Instance Attribute Summary collapse

Instance Attribute Details

#afterObject (readonly)

Returns the value of attribute after

Returns:

  • (Object)

    the current value of after



196
197
198
# File 'lib/activerecord/materialized/write_outbox.rb', line 196

def after
  @after
end

#beforeObject (readonly)

Returns the value of attribute before

Returns:

  • (Object)

    the current value of before



196
197
198
# File 'lib/activerecord/materialized/write_outbox.rb', line 196

def before
  @before
end

#eventObject (readonly)

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



196
197
198
# File 'lib/activerecord/materialized/write_outbox.rb', line 196

def event
  @event
end

#operationObject (readonly)

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



196
197
198
# File 'lib/activerecord/materialized/write_outbox.rb', line 196

def operation
  @operation
end

#suffixObject (readonly)

Returns the value of attribute suffix

Returns:

  • (Object)

    the current value of suffix



196
197
198
# File 'lib/activerecord/materialized/write_outbox.rb', line 196

def suffix
  @suffix
end