Class: PostgresPR::Query
- Inherits:
-
Message
- Object
- Utils::ReadBuffer
- Message
- PostgresPR::Query
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
#buffer, create, dump, fields, read, register_message_type
Instance Method Details
#dump ⇒ Object
431
432
433
434
435
|
# File 'lib/postgres-pr/message.rb', line 431
def dump
super(@query.size + 1) do |buffer|
buffer.write_cstring(@query)
end
end
|
#parse(buffer) ⇒ Object
437
438
439
440
441
|
# File 'lib/postgres-pr/message.rb', line 437
def parse(buffer)
super do
@query = buffer.read_cstring
end
end
|