class ActiveRecord::ConnectionAdapters::ConnectionPool

def connection

Experimental RBS support (using type sampling data from the type_fusion project).

def connection: () -> (ActiveRecord::ConnectionAdapters::PostgreSQLAdapter | ActiveRecord::ConnectionAdapters::SQLite3Adapter)

This signature was generated using 90 samples from 2 applications.

held in a cache keyed by a thread.
#connection can be called any number of times; the connection is

#checkout to obtain one if necessary.
Retrieve the connection associated with the current thread, or call
def connection
  @thread_cached_conns[connection_cache_key(current_thread)] ||= checkout
end