Sha256: 7d02fc35bcd209d7ef7c8abcc52b17a552d5e88e67f8975e67c14cd5b385eeb0

Contents?: true

Size: 1.31 KB

Versions: 6

Compression:

Stored size: 1.31 KB

Contents

#
#= ActiveRecord::Turntable
#
# ActiveRecord Sharding Plugin
#
require "active_record/turntable/version"
require "active_record"
require "active_record/fixtures"
require "active_support/concern"
require "active_record/turntable/error"
require "active_record/turntable/util"
require "logger"
require "singleton"

module ActiveRecord::Turntable
  extend ActiveSupport::Concern
  extend ActiveSupport::Autoload

  eager_autoload do
    autoload :ActiveRecordExt
    autoload :Algorithm
    autoload :Base
    autoload :Cluster
    autoload :ClusterHelperMethods
    autoload :ClusterRegistry
    autoload :Configuration
    autoload :ConfigurationMethods
    autoload :ConnectionProxy
    autoload :Compatibility
    autoload :Deprecation
    autoload :DefaultShard
    autoload :Migration
    autoload :Mixer
    autoload :PoolProxy
    autoload :Shard
    autoload :ShardingCondition
    autoload :ShardRegistry
    autoload :SlaveRegistry
    autoload :SlaveShard
    autoload :SeqShard
    autoload :Sequencer
    autoload :SequencerRegistry
  end

  included do
    include ActiveRecordExt
    include Base
    extend ConfigurationMethods
  end

  module ClassMethods
    def turntable_connection_classes
      ActiveRecord::Turntable::Shard.connection_classes
    end
  end

  require "active_record/turntable/railtie" if defined?(Rails)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activerecord-turntable-4.4.1 lib/active_record/turntable.rb
activerecord-turntable-4.4.0 lib/active_record/turntable.rb
activerecord-turntable-4.3.0 lib/active_record/turntable.rb
activerecord-turntable-4.2.0 lib/active_record/turntable.rb
activerecord-turntable-4.1.0 lib/active_record/turntable.rb
activerecord-turntable-4.0.0 lib/active_record/turntable.rb