Module: ActiveRecordHostPool
- Defined in:
- lib/active_record_host_pool/pool_proxy_6_1.rb,
lib/active_record_host_pool.rb,
lib/active_record_host_pool/version.rb,
lib/active_record_host_pool/connection_proxy.rb,
lib/active_record_host_pool/pool_proxy_legacy.rb,
lib/active_record_host_pool/clear_query_cache_patch.rb,
lib/active_record_host_pool/connection_adapter_mixin.rb
Overview
this module sits in between ConnectionHandler and a bunch of different ConnectionPools (one per host). when a connection is requested, it goes like: ActiveRecordClass -> ConnectionHandler#connection ConnectionHandler#connection -> (find or create PoolProxy) PoolProxy -> shared list of Pools Pool actually gives back a connection, then PoolProxy turns this into a ConnectionProxy that can inform (on execute) which db we should be on.
Defined Under Namespace
Modules: ClearQueryCachePatch, DatabaseSwitch, PoolConfigPatch Classes: ConnectionProxy, PoolProxy
Constant Summary collapse
- VERSION =
"1.2.3"