db_driver()
drupal/includes/database/database.inc, line 1868
Retrieve the name of the currently active database driver, such as "mysql" or "pgsql".
The name of the currently active database driver.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
function db_driver() {
return Database::getActiveConnection()->driver();
}