Class: Ronin::Code::SQL::CreateView
- Defined in:
- lib/ronin/code/sql/create_view.rb
Instance Attribute Summary
Attributes inherited from Statement
Instance Method Summary collapse
-
#initialize(dialect, view = nil, options = {}, &block) ⇒ CreateView
constructor
A new instance of CreateView.
- #view(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, 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,={},&block) super(dialect,'VIEW',view,,&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 |