Class: Shiba::Explain::Result
- Inherits:
-
Object
- Object
- Shiba::Explain::Result
- Defined in:
- lib/shiba/explain/result.rb
Instance Attribute Summary collapse
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#result_size ⇒ Object
Returns the value of attribute result_size.
-
#rows_read ⇒ Object
Returns the value of attribute rows_read.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
cost: total rows read result_size: approximate rows returned to the client messages: list of hashes detailing the operations.
Constructor Details
#initialize ⇒ Result
cost: total rows read result_size: approximate rows returned to the client messages: list of hashes detailing the operations
8 9 10 11 12 13 |
# File 'lib/shiba/explain/result.rb', line 8 def initialize @messages = [] @cost = nil @result_size = 0 @rows_read = 0 end |
Instance Attribute Details
#cost ⇒ Object
Returns the value of attribute cost.
15 16 17 |
# File 'lib/shiba/explain/result.rb', line 15 def cost @cost end |
#messages ⇒ Object
Returns the value of attribute messages.
15 16 17 |
# File 'lib/shiba/explain/result.rb', line 15 def @messages end |
#result_size ⇒ Object
Returns the value of attribute result_size.
15 16 17 |
# File 'lib/shiba/explain/result.rb', line 15 def result_size @result_size end |
#rows_read ⇒ Object
Returns the value of attribute rows_read.
15 16 17 |
# File 'lib/shiba/explain/result.rb', line 15 def rows_read @rows_read end |