Class: Shiba::Explain::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/shiba/explain/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResult

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

#costObject

Returns the value of attribute cost.



15
16
17
# File 'lib/shiba/explain/result.rb', line 15

def cost
  @cost
end

#messagesObject

Returns the value of attribute messages.



15
16
17
# File 'lib/shiba/explain/result.rb', line 15

def messages
  @messages
end

#result_sizeObject

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_readObject

Returns the value of attribute rows_read.



15
16
17
# File 'lib/shiba/explain/result.rb', line 15

def rows_read
  @rows_read
end