module ActiveRecord::ShardFor

Support parallel execution with each shard and deal with AR connection management in parallel execution.

Constants

VERSION

Public Class Methods

config() click to toggle source

@return [Activerecord::ShardFor::Config]

# File lib/activerecord/shard_for.rb, line 25
def config
  @config ||= Config.new
end
configure(&block) click to toggle source

@yield [Activerecord::ShardFor::Config]

# File lib/activerecord/shard_for.rb, line 30
def configure(&block)
  config.instance_eval(&block)
end