Class: Mxrb::Oql::PlanReport
- Inherits:
-
Data
- Object
- Data
- Mxrb::Oql::PlanReport
- Defined in:
- lib/mxrb/oql/plan_analyzer.rb
Instance Attribute Summary collapse
-
#analyzed ⇒ Object
readonly
Returns the value of attribute analyzed.
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
-
#execution_time_ms ⇒ Object
readonly
Returns the value of attribute execution_time_ms.
-
#findings ⇒ Object
readonly
Returns the value of attribute findings.
-
#planning_time_ms ⇒ Object
readonly
Returns the value of attribute planning_time_ms.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#total_cost ⇒ Object
readonly
Returns the value of attribute total_cost.
Instance Method Summary collapse
Instance Attribute Details
#analyzed ⇒ Object (readonly)
Returns the value of attribute analyzed
9 10 11 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9 def analyzed @analyzed end |
#engine ⇒ Object (readonly)
Returns the value of attribute engine
9 10 11 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9 def engine @engine end |
#execution_time_ms ⇒ Object (readonly)
Returns the value of attribute execution_time_ms
9 10 11 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9 def execution_time_ms @execution_time_ms end |
#findings ⇒ Object (readonly)
Returns the value of attribute findings
9 10 11 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9 def findings @findings end |
#planning_time_ms ⇒ Object (readonly)
Returns the value of attribute planning_time_ms
9 10 11 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9 def planning_time_ms @planning_time_ms end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw
9 10 11 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9 def raw @raw end |
#total_cost ⇒ Object (readonly)
Returns the value of attribute total_cost
9 10 11 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9 def total_cost @total_cost end |
Instance Method Details
#analyzed? ⇒ Boolean
14 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 14 def analyzed? = analyzed |
#clean? ⇒ Boolean
12 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 12 def clean? = findings.none? { _1.severity == :warning } |
#warnings? ⇒ Boolean
13 |
# File 'lib/mxrb/oql/plan_analyzer.rb', line 13 def warnings? = !clean? |