Connection extenders provide additional database specific functionality not coming in the ActiveRecord library. This module itself only provides functionality to register and retrieve such connection extenders.
Creates database connections by calling db_connect_without_cache with the provided config configuration hash. A new database connection is created only if no according cached connection is available.
Creates an ActiveRecord database connection according to the provided config connection hash. Possible values of this parameter are described in ActiveRecord::Base#establish_connection. The database connection is extended with the correct ConnectionExtenders module.
ActiveRecord only allows one database connection per class. (It disconnects the existing database connection if a new connection is established.) To go around this, we delete ActiveRecord‘s memory of the existing database connection as soon as it is created.
Installs the configured logger (if any) into the database connection.
Registers one or multiple connection extender. extender is a Hash with
key:: The adapter symbol as used by ActiveRecord::Connection Adapters, e. g. :postgresql value:: Name of the module implementing the connection extender