Change record status: 
Project: 
Introduced in branch: 
9.2.x
Introduced in version: 
9.2.0
Description: 

Two new methods are added to the class Drupal\Core\Database\Connection: getProvider() and enableModuleProvidingDatabaseDriver().

The method getProvider() takes no parameters and returns the name of the module that is providing the database driver or "core" when there is no such module.

The method enableModuleProvidingDatabaseDriver() also takes no parameters and enables the module that is providing the database driver. If there is no such module or that module is already enabled then the method does nothing.

Impacts: 
Module developers