Module: Imparcial::Driver::AbstractExpression::Select

Included in:
Imparcial::Driver::AbstractExpression
Defined in:
lib/imparcial/driver/abstract/expression/select.rb

Instance Method Summary collapse

Instance Method Details

#select(options = {}) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/imparcial/driver/abstract/expression/select.rb', line 21

def select ( options = {} )
       
  sql = sql_for_selecting( options )
  
  logger.warn sql if @select_logging
  
  query sql
  
rescue adapter_specific_exception => ex

  raise SelectError.new(ex.message)

end