ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool Ruby on Rails 5.1.2 Class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool < ActiveRecord::ConnectionAdapters::StatementPool activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb Methods # []= N new, next_key Class Public methods new(connection, max) Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 183 def initialize(connection, max) super(max) @connection = connection @counter = 0 end Instance Public methods []=(sql, key) Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 193 def []=(sql, key) super.tap { @counter += 1 } end next_key() Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 189 def next_key "a#{@counter + 1}" end