Class: Pgoutput::Decoder::Events::Update

Inherits:
Data
  • Object
show all
Defined in:
lib/pgoutput/decoder/events.rb,
sig/pgoutput_decoder.rbs

Overview

Decoded update row-change event class.

Returns:

  • (Class)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#new_valuesObject (readonly)

Returns the value of attribute new_values

Returns:

  • (Object)

    the current value of new_values



34
35
36
# File 'lib/pgoutput/decoder/events.rb', line 34

def new_values
  @new_values
end

#old_keyObject (readonly)

Returns the value of attribute old_key

Returns:

  • (Object)

    the current value of old_key



34
35
36
# File 'lib/pgoutput/decoder/events.rb', line 34

def old_key
  @old_key
end

#old_valuesObject (readonly)

Returns the value of attribute old_values

Returns:

  • (Object)

    the current value of old_values



34
35
36
# File 'lib/pgoutput/decoder/events.rb', line 34

def old_values
  @old_values
end

#relation_idObject (readonly)

Returns the value of attribute relation_id

Returns:

  • (Object)

    the current value of relation_id



34
35
36
# File 'lib/pgoutput/decoder/events.rb', line 34

def relation_id
  @relation_id
end

#schemaObject (readonly)

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



34
35
36
# File 'lib/pgoutput/decoder/events.rb', line 34

def schema
  @schema
end

#tableObject (readonly)

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



34
35
36
# File 'lib/pgoutput/decoder/events.rb', line 34

def table
  @table
end

#transaction_idObject (readonly)

Returns the value of attribute transaction_id

Returns:

  • (Object)

    the current value of transaction_id



34
35
36
# File 'lib/pgoutput/decoder/events.rb', line 34

def transaction_id
  @transaction_id
end

Class Method Details

.newUpdate

Parameters:

  • transaction_id (Integer)
  • relation_id (Integer)
  • schema (String)
  • table (String)
  • old_key (Hash[String, untyped], nil)
  • old_values (Hash[String, untyped], nil)
  • new_values (Hash[String, untyped])

Returns:



89
# File 'sig/pgoutput_decoder.rbs', line 89

def self.new: (Integer transaction_id, Integer relation_id, String schema, String table, Hash[String, untyped]? old_key, Hash[String, untyped]? old_values, Hash[String, untyped] new_values) -> Update