Sha256: 7980439b58014a4a582a312f494fe03e9e1c04be51afe62c5ac0d631a61037d9

Contents?: true

Size: 911 Bytes

Versions: 15

Compression:

Stored size: 911 Bytes

Contents

require_relative 'oid/box'
require_relative 'oid/circle'
require_relative 'oid/enum'
require_relative 'oid/enum_set'
require_relative 'oid/interval'
require_relative 'oid/line'
require_relative 'oid/range'
require_relative 'oid/segment'

module Torque
  module PostgreSQL
    module Adapter
      module OID
      end

      ActiveRecord::Type.register(:box,      OID::Box,      adapter: :postgresql)
      ActiveRecord::Type.register(:circle,   OID::Circle,   adapter: :postgresql)
      ActiveRecord::Type.register(:enum,     OID::Enum,     adapter: :postgresql)
      ActiveRecord::Type.register(:enum_set, OID::EnumSet,  adapter: :postgresql)
      ActiveRecord::Type.register(:interval, OID::Interval, adapter: :postgresql)
      ActiveRecord::Type.register(:line,     OID::Line,     adapter: :postgresql)
      ActiveRecord::Type.register(:segment,  OID::Segment,  adapter: :postgresql)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
torque-postgresql-1.1.8 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.7 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-2.0.3 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-2.0.2 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.6 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.5 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-2.0.1 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-2.0.0 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.4 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.3 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.2 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.1 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.1.0 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.0.1 lib/torque/postgresql/adapter/oid.rb
torque-postgresql-1.0.0 lib/torque/postgresql/adapter/oid.rb