instance method
remove_connection_pool
Ruby on Rails 7.0.10
Since v6.1.7.10Signature
remove_connection_pool(owner, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard)
No documentation comment.
Parameters
-
ownerreq -
rolekey = ActiveRecord::Base.current_role -
shardkey = ActiveRecord::Base.current_shard
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 221
def remove_connection_pool(owner, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard)
if pool_manager = get_pool_manager(owner)
pool_config = pool_manager.remove_pool_config(role, shard)
if pool_config
pool_config.disconnect!
pool_config.db_config
end
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb line 221
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionHandler