gitextract_9iqagwm9/ ├── .gitignore ├── .travis.yml ├── CHANGES ├── LICENSE ├── Makefile ├── README.rdoc ├── Rakefile ├── ci_build ├── db-charmer.gemspec ├── init.rb ├── issues/ │ └── issues-as-of-2014-11-14.json ├── lib/ │ ├── db_charmer/ │ │ ├── action_controller/ │ │ │ └── force_slave_reads.rb │ │ ├── active_record/ │ │ │ ├── association_preload.rb │ │ │ ├── class_attributes.rb │ │ │ ├── connection_switching.rb │ │ │ ├── db_magic.rb │ │ │ ├── migration/ │ │ │ │ └── multi_db_migrations.rb │ │ │ ├── multi_db_proxy.rb │ │ │ └── sharding.rb │ │ ├── connection_factory.rb │ │ ├── connection_proxy.rb │ │ ├── core_extensions.rb │ │ ├── force_slave_reads.rb │ │ ├── rails2/ │ │ │ ├── abstract_adapter/ │ │ │ │ └── log_formatting.rb │ │ │ └── active_record/ │ │ │ ├── master_slave_routing.rb │ │ │ └── named_scope/ │ │ │ └── scope_proxy.rb │ │ ├── rails3/ │ │ │ ├── abstract_adapter/ │ │ │ │ └── connection_name.rb │ │ │ └── active_record/ │ │ │ ├── log_subscriber.rb │ │ │ ├── master_slave_routing.rb │ │ │ ├── relation/ │ │ │ │ └── connection_routing.rb │ │ │ └── relation_method.rb │ │ ├── rails31/ │ │ │ └── active_record/ │ │ │ ├── migration/ │ │ │ │ └── command_recorder.rb │ │ │ └── preloader/ │ │ │ ├── association.rb │ │ │ └── has_and_belongs_to_many.rb │ │ ├── railtie.rb │ │ ├── sharding/ │ │ │ ├── connection.rb │ │ │ ├── method/ │ │ │ │ ├── db_block_group_map.rb │ │ │ │ ├── db_block_map.rb │ │ │ │ ├── hash_map.rb │ │ │ │ └── range.rb │ │ │ ├── method.rb │ │ │ └── stub_connection.rb │ │ ├── sharding.rb │ │ ├── tasks/ │ │ │ └── databases.rake │ │ ├── version.rb │ │ └── with_remapped_databases.rb │ └── db_charmer.rb ├── test-project/ │ ├── .gitignore │ ├── .rspec │ ├── Gemfile │ ├── Rakefile │ ├── TODO │ ├── app/ │ │ ├── controllers/ │ │ │ ├── application_controller.rb │ │ │ └── posts_controller.rb │ │ ├── helpers/ │ │ │ └── application_helper.rb │ │ ├── models/ │ │ │ ├── avatar.rb │ │ │ ├── car.rb │ │ │ ├── categories_posts.rb │ │ │ ├── category.rb │ │ │ ├── comment.rb │ │ │ ├── event.rb │ │ │ ├── ford.rb │ │ │ ├── house.rb │ │ │ ├── log_record.rb │ │ │ ├── post.rb │ │ │ ├── range_sharded_model.rb │ │ │ ├── toyota.rb │ │ │ └── user.rb │ │ └── views/ │ │ ├── layouts/ │ │ │ └── application.html.erb │ │ └── posts/ │ │ ├── index.html.erb │ │ ├── new.html.erb │ │ └── show.html.erb │ ├── config/ │ │ ├── application.rb │ │ ├── boot.rb │ │ ├── database.yml.example │ │ ├── environment.rb │ │ ├── environments/ │ │ │ └── test.rb │ │ ├── initializers/ │ │ │ ├── backtrace_silencers.rb │ │ │ ├── db_charmer.rb │ │ │ ├── secret_token.rb │ │ │ ├── session_store.rb │ │ │ └── sharding.rb │ │ ├── locales/ │ │ │ └── en.yml │ │ └── routes.rb │ ├── db/ │ │ ├── create_databases.sql │ │ ├── migrate/ │ │ │ ├── 20090810013829_create_log_records.rb │ │ │ ├── 20090810013922_create_posts.rb │ │ │ ├── 20090810221944_create_users.rb │ │ │ ├── 20100305234245_create_categories.rb │ │ │ ├── 20100305234340_create_categories_posts.rb │ │ │ ├── 20100305235831_create_avatars.rb │ │ │ ├── 20100328201317_create_sharding_map_tables.rb │ │ │ ├── 20100330180517_create_event_tables.rb │ │ │ ├── 20100817191548_create_cars.rb │ │ │ └── 20111005193941_create_comments.rb │ │ ├── seeds.rb │ │ └── sharding.sql │ └── spec/ │ ├── controllers/ │ │ └── posts_controller_spec.rb │ ├── fixtures/ │ │ ├── avatars.yml │ │ ├── categories.yml │ │ ├── categories_posts.yml │ │ ├── comments.yml │ │ ├── event_shards_info.yml │ │ ├── event_shards_map.yml │ │ ├── log_records.yml │ │ ├── posts.yml │ │ └── users.yml │ ├── integration/ │ │ └── multi_threading_spec.rb │ ├── models/ │ │ ├── avatar_spec.rb │ │ ├── cars_spec.rb │ │ ├── categories_posts_spec.rb │ │ ├── category_spec.rb │ │ ├── comment_spec.rb │ │ ├── event_spec.rb │ │ ├── log_record_spec.rb │ │ ├── post_spec.rb │ │ ├── range_sharded_model_spec.rb │ │ └── user_spec.rb │ ├── sharding/ │ │ ├── connection_spec.rb │ │ ├── method/ │ │ │ ├── db_block_map_spec.rb │ │ │ ├── hash_map_spec.rb │ │ │ └── range_spec.rb │ │ └── sharding_spec.rb │ ├── spec_helper.rb │ ├── support/ │ │ └── rails31_stub_connection.rb │ └── unit/ │ ├── abstract_adapter/ │ │ └── log_formatting_spec.rb │ ├── action_controller/ │ │ └── force_slave_reads_spec.rb │ ├── active_record/ │ │ ├── association_preload_spec.rb │ │ ├── association_proxy_spec.rb │ │ ├── class_attributes_spec.rb │ │ ├── connection_switching_spec.rb │ │ ├── db_magic_spec.rb │ │ ├── master_slave_routing_spec.rb │ │ ├── migration/ │ │ │ └── multi_db_migrations_spec.rb │ │ ├── named_scope/ │ │ │ └── named_scope_spec.rb │ │ └── relation_spec.rb │ ├── connection_factory_spec.rb │ ├── connection_proxy_spec.rb │ ├── db_charmer_spec.rb │ ├── multi_db_proxy_spec.rb │ └── with_remapped_databases_spec.rb └── test-project-2.x/ ├── Gemfile ├── Rakefile ├── config/ │ ├── boot.rb │ ├── database.yml.example │ ├── environment.rb │ ├── environments/ │ │ └── test.rb │ ├── initializers/ │ │ ├── backtrace_silencers.rb │ │ ├── db_charmer.rb │ │ ├── inflections.rb │ │ ├── mime_types.rb │ │ ├── new_rails_defaults.rb │ │ ├── session_store.rb │ │ └── sharding.rb │ ├── locales/ │ │ └── en.yml │ ├── preinitializer.rb │ └── routes.rb ├── script/ │ └── console └── spec/ ├── spec.opts └── spec_helper.rb