Class: SQLConstructor::BasicInsert

Inherits:
GenericQuery show all
Defined in:
lib/sqlconstructor.rb

Overview

Internal class which represents a basic INSERT statement.

Direct Known Subclasses

BasicInsert_mysql

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

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

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_columnsObject (readonly)

Returns the value of attribute ins_columns.



642
643
644
# File 'lib/sqlconstructor.rb', line 642

def ins_columns
  @ins_columns
end

#ins_intoObject (readonly)

Returns the value of attribute ins_into.



642
643
644
# File 'lib/sqlconstructor.rb', line 642

def ins_into
  @ins_into
end

#ins_selectObject (readonly)

Returns the value of attribute ins_select.



642
643
644
# File 'lib/sqlconstructor.rb', line 642

def ins_select
  @ins_select
end

#ins_setObject (readonly)

Returns the value of attribute ins_set.



642
643
644
# File 'lib/sqlconstructor.rb', line 642

def ins_set
  @ins_set
end

#ins_valuesObject (readonly)

Returns the value of attribute ins_values.



642
643
644
# File 'lib/sqlconstructor.rb', line 642

def ins_values
  @ins_values
end