Class: Pgoutput::Decoder::Events::Insert

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

Overview

Decoded insert row-change event class.

Returns:

  • (Class)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#relation_idObject (readonly)

Returns the value of attribute relation_id

Returns:

  • (Object)

    the current value of relation_id



29
30
31
# File 'lib/pgoutput/decoder/events.rb', line 29

def relation_id
  @relation_id
end

#schemaObject (readonly)

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



29
30
31
# File 'lib/pgoutput/decoder/events.rb', line 29

def schema
  @schema
end

#tableObject (readonly)

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



29
30
31
# File 'lib/pgoutput/decoder/events.rb', line 29

def table
  @table
end

#transaction_idObject (readonly)

Returns the value of attribute transaction_id

Returns:

  • (Object)

    the current value of transaction_id



29
30
31
# File 'lib/pgoutput/decoder/events.rb', line 29

def transaction_id
  @transaction_id
end

#valuesObject (readonly)

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



29
30
31
# File 'lib/pgoutput/decoder/events.rb', line 29

def values
  @values
end

Class Method Details

.newInsert

Parameters:

  • transaction_id (Integer)
  • relation_id (Integer)
  • schema (String)
  • table (String)
  • values (Hash[String, untyped])

Returns:



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

def self.new: (Integer transaction_id, Integer relation_id, String schema, String table, Hash[String, untyped] values) -> Insert