class MysqlPR::RawRecord

Public Class Methods

new(packet, nfields, encoding) click to toggle source
# File lib/mysql-pr/protocol.rb, line 733
def initialize(packet, nfields, encoding)
  @packet, @nfields, @encoding = packet, nfields, encoding
end

Public Instance Methods

to_a() click to toggle source
# File lib/mysql-pr/protocol.rb, line 737
def to_a
  @nfields.times.map do
    if s = @packet.lcs
      s = Charset.convert_encoding(s, @encoding)
    end
    s
  end
end