Sha256: d7d53e45ff4d1902cf803843622481c25635b76ab4791b111b6cddd852d7b62e

Contents?: true

Size: 468 Bytes

Versions: 34

Compression:

Stored size: 468 Bytes

Contents

module Arel
  module Visitors
    class PostgreSQL < Arel::Visitors::ToSql
      private
      def visit_Arel_Nodes_Lock o
        visit o.expr
      end

      def visit_Arel_Nodes_Matches o
        "#{visit o.left} ILIKE #{visit o.right}"
      end

      def visit_Arel_Nodes_DoesNotMatch o
        "#{visit o.left} NOT ILIKE #{visit o.right}"
      end

      def visit_Arel_Nodes_DistinctOn o
        "DISTINCT ON ( #{visit o.expr} )"
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb