Class: DBWrapper::MysqlProtocol

Inherits:
Object
  • Object
show all
Defined in:
lib/db_wrapper/protocols/mysql_protocol.rb

Instance Method Summary collapse

Instance Method Details

#max_packet_sizeObject



6
7
8
# File 'lib/db_wrapper/protocols/mysql_protocol.rb', line 6

def max_packet_size
  2 ** 24 - 1
end

#parse_command(dirty_command) ⇒ Object



3
4
5
# File 'lib/db_wrapper/protocols/mysql_protocol.rb', line 3

def parse_command(dirty_command)
  dirty_command.byteslice(5, dirty_command.length)
end