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
26 27 28 |
# File 'lib/active_record/turntable/sql_tree_patch.rb', line 26 def index_keyword? [SQLTree::Token::INDEX, SQLTree::Token::KEY].include?(self.class) end |
#possible_index_hint? ⇒ Boolean
22 23 24 |
# File 'lib/active_record/turntable/sql_tree_patch.rb', line 22 def possible_index_hint? [SQLTree::Token::USE, SQLTree::Token::FORCE, SQLTree::Token::IGNORE].include?(self.class) end |