Module: SpringOnion

Defined in:
lib/spring_onion/error.rb,
lib/spring_onion/config.rb,
lib/spring_onion/version.rb,
lib/spring_onion/explainer.rb,
lib/spring_onion/json_logger.rb

Defined Under Namespace

Modules: Explainer, JsonLogger Classes: Error

Constant Summary collapse

SLOW_SELECT_TYPE_RE =
Regexp.union(
  'DEPENDENT UNION',
  'DEPENDENT SUBQUERY',
  'UNCACHEABLE UNION',
  'UNCACHEABLE SUBQUERY'
)
SLOW_TYPE_RE =
Regexp.union('index', 'ALL')
SLOW_POSSIBLE_KEYS_RE =
Regexp.union('NULL')
SLOW_KEY_RE =
Regexp.union('NULL')
SLOW_EXTRA_RE =
Regexp.union(
  'Using filesort',
  'Using temporary'
)
VERSION =
'1.0.3'

Class Attribute Summary collapse

Class Attribute Details

.colorObject

Returns the value of attribute color.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def color
  @color
end

.connectionObject

Returns the value of attribute connection.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def connection
  @connection
end

.enabledObject

Returns the value of attribute enabled.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def enabled
  @enabled
end

.ignore_source_filter_reObject

Returns the value of attribute ignore_source_filter_re.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def ignore_source_filter_re
  @ignore_source_filter_re
end

.ignore_sql_filter_reObject

Returns the value of attribute ignore_sql_filter_re.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def ignore_sql_filter_re
  @ignore_sql_filter_re
end

.json_prettyObject

Returns the value of attribute json_pretty.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def json_pretty
  @json_pretty
end

.loggerObject

Returns the value of attribute logger.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def logger
  @logger
end

.source_filterObject

Returns the value of attribute source_filter.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def source_filter
  @source_filter
end

.source_filter_reObject

Returns the value of attribute source_filter_re.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def source_filter_re
  @source_filter_re
end

.sql_filterObject

Returns the value of attribute sql_filter.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def sql_filter
  @sql_filter
end

.sql_filter_reObject

Returns the value of attribute sql_filter_re.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def sql_filter_re
  @sql_filter_re
end

.trace_lenObject

Returns the value of attribute trace_len.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def trace_len
  @trace_len
end

.warningsObject

Returns the value of attribute warnings.



73
74
75
# File 'lib/spring_onion/config.rb', line 73

def warnings
  @warnings
end