Class: PostgresPR::ReadyForQuery

Inherits:
Message
  • Object
show all
Defined in:
lib/postgres-pr/message.rb

Constant Summary

Constants inherited from Message

Message::MsgTypeMap

Instance Method Summary collapse

Methods inherited from Message

create, dump, fields, read, register_message_type

Instance Method Details

#dumpObject



247
248
249
250
251
# File 'lib/postgres-pr/message.rb', line 247

def dump
  super(1) do |buffer|
    buffer.write_byte(@backend_transaction_status_indicator)
  end
end

#parse(buffer) ⇒ Object



253
254
255
256
257
# File 'lib/postgres-pr/message.rb', line 253

def parse(buffer)
  super do
    @backend_transaction_status_indicator = buffer.read_byte
  end
end