Class: ActiveRecord::ConnectionAdapters::CipherStashPGAdapter::StatementPool

Inherits:
ConnectionAdapters::StatementPool
  • Object
show all
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

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_keyObject



211
212
213
# File 'lib/active_record/connection_adapters/6.1/postgres_cipherstash_adapter.rb', line 211

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