Class: PostgresPR::Query
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
#dump ⇒ Object
422
423
424
425
426
|
# File 'lib/postgres-pr/message.rb', line 422
def dump
super(@query.size + 1) do |buffer|
buffer.write_cstring(@query)
end
end
|
#parse(buffer) ⇒ Object
428
429
430
431
432
|
# File 'lib/postgres-pr/message.rb', line 428
def parse(buffer)
super do
@query = buffer.read_cstring
end
end
|