Method: Lore::Table_Accessor.select
- Defined in:
- lib/lore/model/table_accessor.rb
.select(clause = nil, &block) ⇒ Object
def }}}
610 611 612 613 614 615 616 617 |
# File 'lib/lore/model/table_accessor.rb', line 610 def self.select(clause=nil, &block) # {{{ if(!clause.nil? && !clause.to_s.include?('*,')) then query_string = @select_strategy.select_query(clause.to_s, &block) return Clause.new(query_string[:query]) end return Select_Query.new(self, clause.to_s, &block) end |