Class: Fiveruns::Tuneup::Step::SQL
- Inherits:
-
Object
- Object
- Fiveruns::Tuneup::Step::SQL
- Defined in:
- lib/fiveruns/tuneup/step.rb
Defined Under Namespace
Classes: Explain
Instance Attribute Summary collapse
-
#explain ⇒ Object
readonly
Returns the value of attribute explain.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(sql, connection) ⇒ SQL
constructor
A new instance of SQL.
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
#explain ⇒ Object (readonly)
Returns the value of attribute explain.
145 146 147 |
# File 'lib/fiveruns/tuneup/step.rb', line 145 def explain @explain end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
145 146 147 |
# File 'lib/fiveruns/tuneup/step.rb', line 145 def query @query end |