Sha256: 66ce963697eaff63e8a46c3b43d3bd9f72062d559fa5c1476bf3b25788b80561

Contents?: true

Size: 419 Bytes

Versions: 31

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module Torque
  module PostgreSQL
    module Arel
      module Operations

        # Create a cast operation
        def cast(type, array = false)
          Nodes::Cast.new(self, type, array)
        end

      end

      ::Arel::Attributes::Attribute.include(Operations)
      ::Arel::Nodes::SqlLiteral.include(Operations)
      ::Arel::Nodes::Node.include(Operations)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
torque-postgresql-3.4.1 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.4.5 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.4.0 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.3.3 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.4.4 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.3.2 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.4.3 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.3.1 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.3.0 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.2.2 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.4.2 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.4.1 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.2.1 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.4.0 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.2.0 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.1.0 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.3.0 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.0.1 lib/torque/postgresql/arel/operations.rb
torque-postgresql-2.2.4 lib/torque/postgresql/arel/operations.rb
torque-postgresql-3.0.0 lib/torque/postgresql/arel/operations.rb