Sha256: be342bfb719492bf0dd9a20149442c9beb78e15c049f5d4280d9c4cd5e6d7261

Contents?: true

Size: 578 Bytes

Versions: 10

Compression:

Stored size: 578 Bytes

Contents

# rubocop:disable Naming/MethodName
# rubocop:disable Naming/UncommunicativeMethodParamName

module Arel
  module Nodes
    # Postgres: https://www.postgresql.org/docs/9.2/sql-expressions.html
    class Row < Arel::Nodes::Binary
      alias expr left
      alias row_format right
    end
  end

  module Visitors
    class ToSql
      def visit_Arel_Nodes_Row(o, collector)
        collector << 'ROW('
        visit o.expr, collector
        collector << ')'
      end
    end
  end
end

# rubocop:enable Naming/MethodName
# rubocop:enable Naming/UncommunicativeMethodParamName

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/extensions/row.rb
arel_toolkit-0.4.8 lib/arel/extensions/row.rb
arel_toolkit-0.4.7 lib/arel/extensions/row.rb
arel_toolkit-0.4.6 lib/arel/extensions/row.rb
arel_toolkit-0.4.5 lib/arel/extensions/row.rb
arel_toolkit-0.4.4 lib/arel/extensions/row.rb
arel_toolkit-0.4.3 lib/arel/extensions/row.rb
arel_toolkit-0.4.2 lib/arel/extensions/row.rb
arel_toolkit-0.4.1 lib/arel/extensions/row.rb
arel_toolkit-0.4.0 lib/arel/extensions/row.rb