Class: Fiveruns::Tuneup::Step::SQL

Inherits:
Object
  • Object
show all
Defined in:
lib/fiveruns/tuneup/step.rb

Defined Under Namespace

Classes: Explain

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sql, connection) ⇒ SQL

Returns a new instance of SQL.



147
148
149
150
# File 'lib/fiveruns/tuneup/step.rb', line 147

def initialize(sql, connection)
  @query = sql
  @explain = explain_from(connection)
end

Instance Attribute Details

#explainObject (readonly)

Returns the value of attribute explain.



145
146
147
# File 'lib/fiveruns/tuneup/step.rb', line 145

def explain
  @explain
end

#queryObject (readonly)

Returns the value of attribute query.



145
146
147
# File 'lib/fiveruns/tuneup/step.rb', line 145

def query
  @query
end