Class: Ronin::Code::SQL::CreateView

Inherits:
Create show all
Defined in:
lib/ronin/code/sql/create_view.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, view = nil, options = {}, &block) ⇒ CreateView

Returns a new instance of CreateView.



29
30
31
# File 'lib/ronin/code/sql/create_view.rb', line 29

def initialize(dialect,view=nil,options={},&block)
  super(dialect,'VIEW',view,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

#view(name = nil) ⇒ Object



33
34
35
36
# File 'lib/ronin/code/sql/create_view.rb', line 33

def view(name=nil)
  @name = name if name
  return @name
end