Class: ActiveRecord::ConnectionAdapters::YugabyteDBAdapter::StatementPool
- Inherits:
-
ConnectionAdapters::StatementPool
- Object
- ConnectionAdapters::StatementPool
- ActiveRecord::ConnectionAdapters::YugabyteDBAdapter::StatementPool
- Defined in:
- lib/active_record/connection_adapters/yugabytedb_adapter.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(connection, max) ⇒ StatementPool
constructor
A new instance of StatementPool.
- #next_key ⇒ Object
Constructor Details
#initialize(connection, max) ⇒ StatementPool
Returns a new instance of StatementPool.
299 300 301 302 303 |
# File 'lib/active_record/connection_adapters/yugabytedb_adapter.rb', line 299 def initialize(connection, max) super(max) @connection = connection @counter = 0 end |
Instance Method Details
#next_key ⇒ Object
305 306 307 |
# File 'lib/active_record/connection_adapters/yugabytedb_adapter.rb', line 305 def next_key "a#{@counter += 1}" end |