class SQLConstructor::BasicSelect

Internal class which represents a basic SELECT statement.

Constants

METHODS

Hash - list of available class meta-methods, which would be processed by .method_missing() to set the appropriate object's attributes (as defined in the METHODS hash itself). The keys of the hash are the methods names (symbols), the values are instances of the QAttr class.

Attributes

attr_distinction[RW]
attr_expression[RW]
attr_first[RW]
attr_from[RW]
attr_group_by[RW]
attr_group_by_order[RW]
attr_having[RW]
attr_index_hints[RW]
attr_joins[RW]
attr_order_by[RW]
attr_order_by_order[RW]
attr_skip[RW]
attr_unions[RW]
attr_where[RW]

Public Class Methods

new( _caller, *list ) click to toggle source

Class constructor. _caller - the caller object *list - list of sources for the FROM clause

Calls superclass method SQLConstructor::GenericQuery::new
# File lib/sqlconstructor.rb, line 587
def initialize ( _caller, *list )
    super _caller
    @attr_expression = QAttr.new(
                        :name => 'attr_expression',
                        :text => '',
                        :val  => SQLAliasedList.new( *list )
                      )
end

Public Instance Methods

select_more( *list ) click to toggle source

Add more objects to SELECT expression list ( @attr_expression )

# File lib/sqlconstructor.rb, line 599
def select_more ( *list )
    @attr_expression.val.push *list
end