Class: Pgoutput::SourceAdapter::Cdc::StreamEvent
- Inherits:
-
Object
- Object
- Pgoutput::SourceAdapter::Cdc::StreamEvent
- Defined in:
- lib/pgoutput/source_adapter/cdc.rb
Overview
A decoded event paired with its transport-level source position.
Source integrations use this value object to preserve WAL position metadata without teaching downstream applications about pgoutput transaction boundaries.
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Decoded pgoutput event.
-
#source_position ⇒ String?
readonly
Transport WAL position.
Instance Method Summary collapse
- #initialize(event, source_position) ⇒ void constructor
Constructor Details
#initialize(event, source_position) ⇒ void
60 61 62 63 64 |
# File 'lib/pgoutput/source_adapter/cdc.rb', line 60 def initialize(event, source_position) @event = event @source_position = source_position freeze end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns decoded pgoutput event.
53 54 55 |
# File 'lib/pgoutput/source_adapter/cdc.rb', line 53 def event @event end |
#source_position ⇒ String? (readonly)
Returns transport WAL position.
55 56 57 |
# File 'lib/pgoutput/source_adapter/cdc.rb', line 55 def source_position @source_position end |