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
-
.color ⇒ Object
Returns the value of attribute color.
-
.connection ⇒ Object
Returns the value of attribute connection.
-
.enabled ⇒ Object
Returns the value of attribute enabled.
-
.ignore_source_filter_re ⇒ Object
Returns the value of attribute ignore_source_filter_re.
-
.ignore_sql_filter_re ⇒ Object
Returns the value of attribute ignore_sql_filter_re.
-
.json_pretty ⇒ Object
Returns the value of attribute json_pretty.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.source_filter ⇒ Object
Returns the value of attribute source_filter.
-
.source_filter_re ⇒ Object
Returns the value of attribute source_filter_re.
-
.sql_filter ⇒ Object
Returns the value of attribute sql_filter.
-
.sql_filter_re ⇒ Object
Returns the value of attribute sql_filter_re.
-
.trace_len ⇒ Object
Returns the value of attribute trace_len.
-
.warnings ⇒ Object
Returns the value of attribute warnings.
Class Attribute Details
.color ⇒ Object
Returns the value of attribute color.
73 74 75 |
# File 'lib/spring_onion/config.rb', line 73 def color @color end |
.connection ⇒ Object
Returns the value of attribute connection.
73 74 75 |
# File 'lib/spring_onion/config.rb', line 73 def connection @connection end |
.enabled ⇒ Object
Returns the value of attribute enabled.
73 74 75 |
# File 'lib/spring_onion/config.rb', line 73 def enabled @enabled end |
.ignore_source_filter_re ⇒ Object
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_re ⇒ Object
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_pretty ⇒ Object
Returns the value of attribute json_pretty.
73 74 75 |
# File 'lib/spring_onion/config.rb', line 73 def json_pretty @json_pretty end |
.logger ⇒ Object
Returns the value of attribute logger.
73 74 75 |
# File 'lib/spring_onion/config.rb', line 73 def logger @logger end |
.source_filter ⇒ Object
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_re ⇒ Object
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_filter ⇒ Object
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_re ⇒ Object
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_len ⇒ Object
Returns the value of attribute trace_len.
73 74 75 |
# File 'lib/spring_onion/config.rb', line 73 def trace_len @trace_len end |
.warnings ⇒ Object
Returns the value of attribute warnings.
73 74 75 |
# File 'lib/spring_onion/config.rb', line 73 def warnings @warnings end |