Class: Mxrb::Oql::PlanReport

Inherits:
Data
  • Object
show all
Defined in:
lib/mxrb/oql/plan_analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#analyzedObject (readonly)

Returns the value of attribute analyzed

Returns:

  • (Object)

    the current value of analyzed



9
10
11
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9

def analyzed
  @analyzed
end

#engineObject (readonly)

Returns the value of attribute engine

Returns:

  • (Object)

    the current value of engine



9
10
11
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9

def engine
  @engine
end

#execution_time_msObject (readonly)

Returns the value of attribute execution_time_ms

Returns:

  • (Object)

    the current value of execution_time_ms



9
10
11
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9

def execution_time_ms
  @execution_time_ms
end

#findingsObject (readonly)

Returns the value of attribute findings

Returns:

  • (Object)

    the current value of findings



9
10
11
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9

def findings
  @findings
end

#planning_time_msObject (readonly)

Returns the value of attribute planning_time_ms

Returns:

  • (Object)

    the current value of planning_time_ms



9
10
11
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9

def planning_time_ms
  @planning_time_ms
end

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



9
10
11
# File 'lib/mxrb/oql/plan_analyzer.rb', line 9

def raw
  @raw
end

#total_costObject (readonly)

Returns the value of attribute total_cost

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


14
# File 'lib/mxrb/oql/plan_analyzer.rb', line 14

def analyzed? = analyzed

#clean?Boolean

Returns:

  • (Boolean)


12
# File 'lib/mxrb/oql/plan_analyzer.rb', line 12

def clean? = findings.none? { _1.severity == :warning }

#warnings?Boolean

Returns:

  • (Boolean)


13
# File 'lib/mxrb/oql/plan_analyzer.rb', line 13

def warnings? = !clean?