Sha256: 6de8c4badfe62bd54ecd102b34d92a872cac88491d32e7757b76b978b0a86cff

Contents?: true

Size: 208 Bytes

Versions: 19

Compression:

Stored size: 208 Bytes

Contents

module PgSerializable
  module Nodes
    class Coalesce < Base
      def initialize(*args)
        @args = args
      end

      def to_sql
        "COALESCE(#{@args.join(', ')})"
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pg_serializable-3.1.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-3.0.2 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-3.0.1 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-3.0.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-2.1.1 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-2.1.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-2.0.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.4.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.3.2 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.3.1 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.3.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.2.2 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.2.1 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.2.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.1.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.0.1 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-1.0.0 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-0.1.1 lib/pg_serializable/nodes/coalesce.rb
pg_serializable-0.1.0 lib/pg_serializable/nodes/coalesce.rb