class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_record/connection_adapters/postgresql_adapter.rbs class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool < ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::ConnectionAdapters::StatementPool def next_key: () -> String end
:nodoc:
def connection_active?
def connection_active? @connection.status == PG::CONNECTION_OK rescue PG::Error false end
def dealloc(key)
def dealloc(key) @connection.query "DEALLOCATE #{key}" if connection_active? rescue PG::Error end
def initialize(connection, max)
def initialize(connection, max) super(max) @connection = connection @counter = 0 end
def next_key
Experimental RBS support (using type sampling data from the type_fusion
project).
def next_key: () -> String
This signature was generated using 1 sample from 1 application.
def next_key "a#{@counter += 1}" end