class ExplainParser

Constants

VERSION

Public Class Methods

call(explain) click to toggle source
# File lib/explain_parser.rb, line 54
def self.call(explain)
  new(explain).call
end
new(explain) click to toggle source
# File lib/explain_parser.rb, line 50
def initialize(explain)
  @explain = explain
end

Public Instance Methods

call() click to toggle source
# File lib/explain_parser.rb, line 58
def call
  case @explain
  when ::String
    FromTableString.new(@explain).call
  when ::Mysql2::Result
    FromMysql2Result.new(@explain).call
  end
end