Class: Ronin::Code::SQL::CreateTable

Inherits:
Create show all
Defined in:
lib/ronin/code/sql/create_table.rb

Instance Attribute Summary

Attributes inherited from Statement

#clauses

Instance Method Summary collapse

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

#===, #in?, #not_in?

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,options={},&block)
  super(dialect,'TABLE',table,options,&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