Class: Mysql::Protocol::QueryPacket
- Defined in:
- lib/mysql/protocol.rb
Overview
Query packet
Instance Attribute Summary collapse
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(*args) ⇒ QueryPacket
constructor
A new instance of QueryPacket.
- #serialize ⇒ Object
Constructor Details
#initialize(*args) ⇒ QueryPacket
Returns a new instance of QueryPacket.
398 399 400 |
# File 'lib/mysql/protocol.rb', line 398 def initialize(*args) @query, = args end |
Instance Attribute Details
#query ⇒ Object
Returns the value of attribute query.
396 397 398 |
# File 'lib/mysql/protocol.rb', line 396 def query @query end |
Instance Method Details
#serialize ⇒ Object
402 403 404 |
# File 'lib/mysql/protocol.rb', line 402 def serialize [COM_QUERY, query].pack("Ca*") end |