Class: PostgresPR::Query

Inherits:
Message 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



424
425
426
427
428
# File 'lib/postgres-pr/message.rb', line 424

def dump
  super(@query.size + 1) do |buffer|
    buffer.write_cstring(@query)
  end
end

#parse(buffer) ⇒ Object



430
431
432
433
434
# File 'lib/postgres-pr/message.rb', line 430

def parse(buffer)
  super do
    @query = buffer.read_cstring
  end
end