Class: SQLTree::Token
- Inherits:
-
Object
- Object
- SQLTree::Token
- Defined in:
- lib/active_record/turntable/sql_tree_patch.rb
Constant Summary collapse
- BINARY_ESCAPE =
Class.new(SQLTree::Token).new('x')
Instance Method Summary collapse
Instance Method Details
#index_keyword? ⇒ Boolean
25 26 27 |
# File 'lib/active_record/turntable/sql_tree_patch.rb', line 25 def index_keyword? [SQLTree::Token::INDEX, SQLTree::Token::KEY].include?(self.class) end |
#possible_index_hint? ⇒ Boolean
21 22 23 |
# File 'lib/active_record/turntable/sql_tree_patch.rb', line 21 def possible_index_hint? [SQLTree::Token::USE, SQLTree::Token::FORCE, SQLTree::Token::IGNORE].include?(self.class) end |