Class: Ronin::Code::SQL::CreateTable
- Defined in:
- lib/ronin/code/sql/create_table.rb
Instance Attribute Summary
Attributes inherited from Statement
Instance Method Summary collapse
-
#initialize(dialect, table = nil, options = {}, &block) ⇒ CreateTable
constructor
A new instance of CreateTable.
- #table(name = nil) ⇒ Object
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, table = nil, options = {}, &block) ⇒ CreateTable
Returns a new instance of CreateTable.
32 33 34 |
# File 'lib/ronin/code/sql/create_table.rb', line 32 def initialize(dialect,table=nil,={},&block) super(dialect,'TABLE',table,,&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
#table(name = nil) ⇒ Object
36 37 38 39 |
# File 'lib/ronin/code/sql/create_table.rb', line 36 def table(name=nil) @name = name if name return @name end |