method
connection_db_config
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionHandling
connection_db_config()public
Returns the db_config object from the associated connection:
ActiveRecord::Base.connection_db_config #<ActiveRecord::DatabaseConfigurations::HashConfig:0x00007fd1acbded10 @env_name="development", @name="primary", @config={pool: 5, timeout: 5000, database: "db/development.sqlite3", adapter: "sqlite3"}>
Use only for reading.