module ActiveRecord::ConnectionHandling

def connection_db_config

Use only for reading.

@name="primary", @config={pool: 5, timeout: 5000, database: "storage/development.sqlite3", adapter: "sqlite3"}>
#ActiveRecord::Base.connection_db_config

Returns the db_config object from the associated connection:
def connection_db_config
  connection_pool.db_config
end