ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool
Methods
#
N
Class Public methods
new(connection, max)
# 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)
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 193
def []=(sql, key)
  super.tap { @counter += 1 }
end
next_key()
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 189
def next_key
  "a#{@counter + 1}"
end