Class: SQLConstructor::BasicInsert
- Inherits:
-
GenericQuery
- Object
- SQLObject
- GenericQuery
- SQLConstructor::BasicInsert
- Defined in:
- lib/sqlconstructor.rb
Overview
Internal class which represents a basic INSERT statement.
Direct Known Subclasses
Constant Summary collapse
- METHODS =
{ :into => QAttr.new( :name => 'ins_into', :text => 'INTO', :val => SQLObject ), :values => QAttr.new( :name => 'ins_values', :text => 'VALUES', :val => SQLValList), :set => QAttr.new( :name => 'ins_set', :text => 'SET', :val => SQLCondList ), :columns => QAttr.new( :name => 'ins_columns', :text => 'COLUMNS', :val => SQLObject), :select => QAttr.new( :name => 'ins_select', :text => '', :val => BasicSelect ) }
Instance Attribute Summary collapse
-
#ins_columns ⇒ Object
readonly
Returns the value of attribute ins_columns.
-
#ins_into ⇒ Object
readonly
Returns the value of attribute ins_into.
-
#ins_select ⇒ Object
readonly
Returns the value of attribute ins_select.
-
#ins_set ⇒ Object
readonly
Returns the value of attribute ins_set.
-
#ins_values ⇒ Object
readonly
Returns the value of attribute ins_values.
Attributes inherited from GenericQuery
#attr_index_hints, #caller, #child_caller, #dialect, #exporter, #string, #tidy, #type
Attributes inherited from SQLObject
#alias, #inline, #name, #separator
Instance Method Summary collapse
-
#initialize(_caller) ⇒ BasicInsert
constructor
Class constructor.
Methods inherited from GenericQuery
#_get, #_remove, #method_missing, #to_s, #to_str
Methods inherited from SQLObject
#_name, #_string, #_string=, get, #to_s
Constructor Details
#initialize(_caller) ⇒ BasicInsert
Class constructor.
_caller - the caller object
656 657 658 |
# File 'lib/sqlconstructor.rb', line 656 def initialize ( _caller ) super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SQLConstructor::GenericQuery
Instance Attribute Details
#ins_columns ⇒ Object (readonly)
Returns the value of attribute ins_columns.
642 643 644 |
# File 'lib/sqlconstructor.rb', line 642 def ins_columns @ins_columns end |
#ins_into ⇒ Object (readonly)
Returns the value of attribute ins_into.
642 643 644 |
# File 'lib/sqlconstructor.rb', line 642 def ins_into @ins_into end |
#ins_select ⇒ Object (readonly)
Returns the value of attribute ins_select.
642 643 644 |
# File 'lib/sqlconstructor.rb', line 642 def ins_select @ins_select end |
#ins_set ⇒ Object (readonly)
Returns the value of attribute ins_set.
642 643 644 |
# File 'lib/sqlconstructor.rb', line 642 def ins_set @ins_set end |
#ins_values ⇒ Object (readonly)
Returns the value of attribute ins_values.
642 643 644 |
# File 'lib/sqlconstructor.rb', line 642 def ins_values @ins_values end |