Class: ActiveRecord::ConnectionAdapters::CipherStashPGAdapter::StatementPool
- Inherits:
-
ConnectionAdapters::StatementPool
- Object
- ConnectionAdapters::StatementPool
- ActiveRecord::ConnectionAdapters::CipherStashPGAdapter::StatementPool
- Defined in:
- lib/active_record/connection_adapters/6.1/postgres_cipherstash_adapter.rb,
lib/active_record/connection_adapters/7.0/postgres_cipherstash_adapter.rb,
lib/active_record/connection_adapters/7.1/postgres_cipherstash_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.
205 206 207 208 209 |
# File 'lib/active_record/connection_adapters/6.1/postgres_cipherstash_adapter.rb', line 205 def initialize(connection, max) super(max) @connection = connection @counter = 0 end |
Instance Method Details
#next_key ⇒ Object
211 212 213 |
# File 'lib/active_record/connection_adapters/6.1/postgres_cipherstash_adapter.rb', line 211 def next_key "a#{@counter += 1}" end |