function db_driver
7.x database.inc | db_driver() |
Retrieves the name of the currently active database driver.
Return value
The name of the currently active database driver.
Related topics
2 calls to db_driver()
- system_update_7016 in drupal-7.x/
modules/ system/ system.install - Remove custom datatype *_unsigned in PostgreSQL.
- update_prepare_d7_bootstrap in drupal-7.x/
includes/ update.inc - Performs extra steps required to bootstrap when using a Drupal 6 database.
File
- drupal-7.x/
includes/ database/ database.inc, line 2621 - Core systems for the database layer.
Code
function db_driver() {
return Database::getConnection()->driver();
}