Class: SQLParser::Statement::IndexHint

Inherits:
Node
  • Object
show all
Defined in:
lib/sql-parser/statement.rb

Direct Known Subclasses

ForceIndex, IgnoreIndex, UseIndex

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(table, index) ⇒ IndexHint

Returns a new instance of IndexHint.



439
440
441
442
# File 'lib/sql-parser/statement.rb', line 439

def initialize(table, index)
  @table = table
  @index = index
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



445
446
447
# File 'lib/sql-parser/statement.rb', line 445

def index
  @index
end

#tableObject (readonly)

Returns the value of attribute table.



444
445
446
# File 'lib/sql-parser/statement.rb', line 444

def table
  @table
end