Sha256: 996a8cb8065ab744a482c8d3d9cc1ae58dedbe821ae175c86fd9cb823533f26e

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 Bytes

Contents

module Torque
  module PostgreSQL
    module Arel
      module SelectManager

        def using column
          column = ::Arel::Nodes::SqlLiteral.new(column.to_s)
          @ctx.source.right.last.right = Using.new(column)
          self
        end

        def only
          @ctx.source.only = true
        end

      end

      ::Arel::SelectManager.include SelectManager
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
torque-postgresql-0.2.5 lib/torque/postgresql/arel/select_manager.rb
torque-postgresql-0.2.4 lib/torque/postgresql/arel/select_manager.rb
torque-postgresql-0.2.3 lib/torque/postgresql/arel/select_manager.rb
torque-postgresql-0.2.2 lib/torque/postgresql/arel/select_manager.rb
torque-postgresql-0.2.1 lib/torque/postgresql/arel/select_manager.rb