Sha256: c966254def6cf2425b09bd43c2d7cfe3613fbc62ea9529eae53a1522c7522c31

Contents?: true

Size: 559 Bytes

Versions: 12

Compression:

Stored size: 559 Bytes

Contents

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

module Arel
  module Nodes
    # Postgres: https://paquier.xyz/postgresql-2/postgres-9-4-feature-highlight-with-ordinality/
    class WithOrdinality < Arel::Nodes::Unary
    end
  end

  module Visitors
    class ToSql
      def visit_Arel_Nodes_WithOrdinality(o, collector)
        visit o.expr, collector
        collector << ' WITH ORDINALITY'
      end
    end
  end
end

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

Version data entries

12 entries across 12 versions & 1 rubygems

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