Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool

Inherits:
ConnectionAdapters::StatementPool
  • Object
show all
Defined in:
lib/active_record/connection_adapters/postgresql_adapter.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(connection, max) ⇒ StatementPool

Returns a new instance of StatementPool.



306
307
308
309
310
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 306

def initialize(connection, max)
  super(max)
  @connection = connection
  @counter = 0
end

Instance Method Details

#next_keyObject



312
313
314
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 312

def next_key
  "a#{@counter += 1}"
end