method

inspect

rails latest stable - Class: ActiveRecord::ConnectionAdapters::ConnectionPool

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

inspect()
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 280
      def inspect # :nodoc:
        name_field = " name=#{db_config.name.inspect}" unless db_config.name == "primary"
        shard_field = " shard=#{@shard.inspect}" unless @shard == :default

        "#<#{self.class.name} env_name=#{db_config.env_name.inspect}#{name_field} role=#{role.inspect}#{shard_field}>"
      end