Class: Ronin::Code::SQL::CreateIndex
- Defined in:
- lib/ronin/code/sql/create_index.rb
Instance Attribute Summary
Attributes inherited from Statement
Instance Method Summary collapse
- #index(name = nil) ⇒ Object
-
#initialize(dialect, index = nil, options = {}, &block) ⇒ CreateIndex
constructor
A new instance of CreateIndex.
Methods inherited from Create
#emit, #if_not_exists!, #if_not_exists?, #temp!, #temp?
Methods inherited from Statement
clause_order, clauses, #emit, #get_clause, #has_clause?, has_clause?
Methods inherited from Expr
Constructor Details
#initialize(dialect, index = nil, options = {}, &block) ⇒ CreateIndex
Returns a new instance of CreateIndex.
32 33 34 |
# File 'lib/ronin/code/sql/create_index.rb', line 32 def initialize(dialect,index=nil,={},&block) super(dialect,'INDEX',index,,&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ronin::Code::SQL::Statement
Instance Method Details
#index(name = nil) ⇒ Object
36 37 38 39 |
# File 'lib/ronin/code/sql/create_index.rb', line 36 def index(name=nil) @name = name if name return @name end |