Class: Mysql::Protocol::StmtClosePacket
- Defined in:
- lib/mysql/protocol.rb
Overview
Stmt close packet
Instance Attribute Summary collapse
-
#statement_id ⇒ Object
Returns the value of attribute statement_id.
Instance Method Summary collapse
-
#initialize(*args) ⇒ StmtClosePacket
constructor
A new instance of StmtClosePacket.
- #serialize ⇒ Object
Constructor Details
#initialize(*args) ⇒ StmtClosePacket
Returns a new instance of StmtClosePacket.
529 530 531 |
# File 'lib/mysql/protocol.rb', line 529 def initialize(*args) @statement_id, = args end |
Instance Attribute Details
#statement_id ⇒ Object
Returns the value of attribute statement_id.
527 528 529 |
# File 'lib/mysql/protocol.rb', line 527 def statement_id @statement_id end |
Instance Method Details
#serialize ⇒ Object
533 534 535 |
# File 'lib/mysql/protocol.rb', line 533 def serialize [Mysql::COM_STMT_CLOSE, statement_id].pack("CV") end |