Sha256: 3c9920766ece6482c2a2a31b0659417af6f9392fcf2995d1662c470dde9b2f25

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 Bytes

Contents

# = Archon.coalesce
module Archon
  def self.coalesce(*coalescees)
    return Nodes::Coalesce.new(*coalescees)
  end

  module Nodes
    # = Coalesce
    #
    # An Arel node that generates a 'COALESCE' statement
    class Coalesce < Arel::Nodes::NamedFunction
      def initialize(*coalescees)
        super 'COALESCE', coalescees
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
archon-0.0.5 lib/archon/nodes/coalesce.rb
archon-0.0.4 lib/archon/nodes/coalesce.rb
archon-0.0.3 lib/archon/nodes/coalesce.rb