Module: Alf::Algebra::Operand
- Defined in:
- lib/alf/algebra/operand.rb
Instance Method Summary collapse
Instance Method Details
#to_sql ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/alf/algebra/operand.rb', line 5 def to_sql cog = to_cog if cog.respond_to?(:to_sql) cog.to_sql else Alf::Sql::Compiler.new.call(self).to_sql end rescue NotSupportedError => ex raise NotSupportedError, "Unable to compile `#{self}` to SQL" end |