Class: RuboCop::Cop::Isucon::Sqlite3::NPlusOneQuery
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Isucon::Sqlite3::NPlusOneQuery
- Extended by:
- AutoCorrector
- Defined in:
- lib/rubocop/cop/isucon/sqlite3/n_plus_one_query.rb
Overview
Note:
If Database
isn't configured, auto-correct will not be available. (Only offense detection can be used)
Note:
For the number of N+1 queries that can be detected by this cop, there are too few that can be corrected automatically
Checks that there’s no N+1 query
Constant Summary
Constants included from Mixin::NPlusOneQueryMethods
Mixin::NPlusOneQueryMethods::ENUMERABLE_METHOD_NAMES, Mixin::NPlusOneQueryMethods::LOOP_TYPES, Mixin::NPlusOneQueryMethods::MSG, Mixin::NPlusOneQueryMethods::POST_CONDITION_LOOP_TYPES
Constants included from Mixin::Sqlite3ExecuteMethods
Mixin::Sqlite3ExecuteMethods::NON_STRING_WARNING_MSG
Method Summary
Methods included from Mixin::NPlusOneQueryMethods
Methods included from Mixin::DatabaseMethods
#connection, #enabled_database?, #find_table_name_from_column_name